HighDots Forums  

div position differences in IE6 vs. Mozilla

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss div position differences in IE6 vs. Mozilla in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ps
 
Posts: n/a

Default div position differences in IE6 vs. Mozilla - 04-21-2004 , 06:26 PM






I can't figure out why the yellow boxes are inside the gray div area in
IE6, but not in Mozilla/Firebird. Any suggestions would be appreciated.
I want the page to appear as it does in IE6.

Here is the page with the layout and html:

http://www.cyberplasm.com/temp/HTMLPage1.htm

Reply With Quote
  #2  
Old   
Steve Pugh
 
Posts: n/a

Default Re: div position differences in IE6 vs. Mozilla - 04-21-2004 , 07:18 PM






ps <ps (AT) invalid (DOT) com> wrote:

Quote:
I can't figure out why the yellow boxes are inside the gray div area in
IE6, but not in Mozilla/Firebird. Any suggestions would be appreciated.
I want the page to appear as it does in IE6.

Here is the page with the layout and html:

http://www.cyberplasm.com/temp/HTMLPage1.htm
Because float removes the element from the normal flow. Hence the
contentarea has no content and hence has no height. Add an element
with clear: left; after the last floated element.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: div position differences in IE6 vs. Mozilla - 04-21-2004 , 07:24 PM



ps <ps (AT) invalid (DOT) com> wrote:

Quote:
I can't figure out why the yellow boxes are inside the gray div area in
IE6, but not in Mozilla/Firebird. Any suggestions would be appreciated.
I want the page to appear as it does in IE6.

Here is the page with the layout and html:

http://www.cyberplasm.com/temp/HTMLPage1.htm
BTW, the appearance in Opera is totally different to either IE or
Mozilla. Probably something to do with the display: inline-block;

And do you mean to trigger quirks mode?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
ps
 
Posts: n/a

Default Re: div position differences in IE6 vs. Mozilla - 04-21-2004 , 07:49 PM



Steve Pugh wrote:
Quote:
ps <ps (AT) invalid (DOT) com> wrote:


I can't figure out why the yellow boxes are inside the gray div area in
IE6, but not in Mozilla/Firebird. Any suggestions would be appreciated.
I want the page to appear as it does in IE6.

Here is the page with the layout and html:

http://www.cyberplasm.com/temp/HTMLPage1.htm


Because float removes the element from the normal flow. Hence the
contentarea has no content and hence has no height. Add an element
with clear: left; after the last floated element.

Steve

This fixed it thanks.


Reply With Quote
  #5  
Old   
ps
 
Posts: n/a

Default Re: div position differences in IE6 vs. Mozilla - 04-21-2004 , 07:53 PM



Steve Pugh wrote:

Quote:
ps <ps (AT) invalid (DOT) com> wrote:


I can't figure out why the yellow boxes are inside the gray div area in
IE6, but not in Mozilla/Firebird. Any suggestions would be appreciated.
I want the page to appear as it does in IE6.

Here is the page with the layout and html:

http://www.cyberplasm.com/temp/HTMLPage1.htm


BTW, the appearance in Opera is totally different to either IE or
Mozilla. Probably something to do with the display: inline-block;
I took inline-block out and it looks ok in Opera. Thank you.
Quote:
And do you mean to trigger quirks mode?
No. Where did I do that?

Quote:
Steve


Reply With Quote
  #6  
Old   
Steve Pugh
 
Posts: n/a

Default Re: div position differences in IE6 vs. Mozilla - 04-22-2004 , 04:56 AM



ps <ps (AT) invalid (DOT) com> wrote:
Quote:
Steve Pugh wrote:

And do you mean to trigger quirks mode?

No. Where did I do that?
When you included the HTML 4.0 Transitional doctype. If you want to
trigger standards mode include a more appropriate doctype. See for
example http://www.hut.fi/u/hsivonen/doctype.html or one of the many
other pages on this subject.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.