CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2003, 01:43 AM
Benahimvp's Avatar
Benahimvp Benahimvp is offline
The Basketball Star
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2001
Location: H-Town
Posts: 550 Benahimvp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Send a message via AIM to Benahimvp Send a message via Yahoo to Benahimvp
Positioning in CSS

Recently I have begun to use CSS to do basically everything to do with positioning and aesthetics. Trying to move into the XHTML standard. Anyway, I used CSS to position pictures and text on a page of mine and it works perfectly in IE 6.0, NS6, and Mozilla 1.2. But then I had an <iframe> that I'm inserting in the center of the page. Now the <iframe> appears in all browsers, but is only centered in IE. Here's the code I used:
PHP Code:
 CSS:

div.frame positionabsolutetop19pxleft144px };

HTML:

<
div class="frame"><iframe src="home.html" name="page" width="707" height="425" frameborder="0"></iframe></div

Like I said, that only works in IE 6.0. I'm wondering why it doesn't work for the other two. I'd understand if positioning altogether didn't work for the other two, but it seems to only not work for the <iframe>. I was forced to create an entirely new page for the other two browsers so it'd look good. Here's what I did:
PHP Code:
<table width="980">
    <
tr>
        <
td colspan="2"><img src="pixel.gif" width="0" height="12" alt="Pixel" /></td>
    </
tr>
    <
tr valign="top">
        <
td width="116">&nbsp;</td>
        <
td width="707"><iframe src="home.html" name="page" width="707" height="425" frameborder="0"></iframe></td>
    </
tr>
</
table

Here's Page #1 and Page #2.

Thanks for all the help!
__________________
-Ben Ilegbodu
(Around the Bend Web Designs)

Reply With Quote
  #2  
Old January 26th, 2003, 03:39 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 13
Send a message via AIM to bricker42
Try putting the style directly on the iframe. That might make a difference.

Also, I don't have IE to test with, but in mozilla & phoenix I can't scroll the iframe or highlight the contents. Both page work peachy in Konqueror, though.
__________________
-james

Reply With Quote
  #3  
Old January 26th, 2003, 03:51 AM
Benahimvp's Avatar
Benahimvp Benahimvp is offline
The Basketball Star
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2001
Location: H-Town
Posts: 550 Benahimvp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Send a message via AIM to Benahimvp Send a message via Yahoo to Benahimvp
I didn't think it would make a difference, but it did. Putting it directly in the <div> tag using "style" made it work. I don't see why it would make a difference. But anyway it works now in all three browsers with only one page so that's good.

You should be able to scroll now. It was working before, but I think I forgot to upload the latest working version.

Reply With Quote
  #4  
Old January 26th, 2003, 04:15 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 13
Send a message via AIM to bricker42
Ya, scrolling works on index6.html. Doesn't work on index6a.html, though. No idea why .

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Positioning in CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap