Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Oct 2005
    Posts
    336
    Thanks
    43
    Thanked 2 Times in 2 Posts

    IE6 wont display my Div correctly

    Im designing some rounded corner divs which use several divs for the display of each of the four corner images for part of my site.

    I had the issue with with the div called 'box' in IE7 (Mozilla had no problems) until I added "overflow:auto" to its css to make it clear below the other divs inside it.

    IE6 however is still suffering from the bottom of the div not clearing the other divs properly. I dont know how to get it to display like all the other 17 browsers which I took screenshots of using browsershots.org. Safari was fine, Opera was fine, etc etc

    If anyone has IE6 could they take a look?

    www.siteoftom.com/testroundedcontent.html


    Crappy IE6...
    Last edited by moss2076; 12-29-2007 at 11:11 AM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Just glancing over your code... your using overflow:auto; to clear your floats... but your not using floats in this layout.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    336
    Thanks
    43
    Thanked 2 Times in 2 Posts
    Ive removed the overflow:auto not sure how it got in there!

    If I give the outer div called "box" a width of 50% everything displays fine in IE6 and IE7 plus Mozilla.

    If I remove the width of 50% then IE6 and 7 are ok, but now its Mozilla which isnt displaying correctly!

    What could be causing this?
    Last edited by moss2076; 12-29-2007 at 09:11 PM.

  • #4
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by moss2076 View Post
    If I give the outer div called "box" a width of 50% everything displays fine in IE6 and IE7 plus Mozilla.

    If I remove the width of 50% then IE6 and 7 are ok, but now its Mozilla which isnt displaying correctly!

    What could be causing this?
    This is a bug in IE6+7 which may be called the “IE6+7 padding-bottom margin-bottom background bug”. I came across this bug in March 2007, but couldn't find any sources describing it. So here is what I know:

    Broken rendering of background (spilling out downwards) occurs for a div satisfying the following:
    1. hasLayout = false and margin-bottom >= 1px
    2. It has a nested div with padding-bottom >= 1px

    + one or more of the following conditions
    • It is itself nested in a div having hasLayout = false and padding-bottom >= 1px
    • It is itself nested in a div having hasLayout = false and border-bottom >= 1px
    • There is a comment node sandwiched between the two mentioned divs above (this case is fixed in IE7, however)


    Test page with live examples. (View in IE6 and IE7 and compare with Firefox 2)

    To understand why the bug appears/disappears when you alter the width or overflow properties consider that hasLayout [1] is triggered in both IE6 and IE7 when you set an explicit width. Furthermore, consider that overflow: auto triggers hasLayout in IE7, but not in IE6.

    As Excavator notes, setting overflow: auto is redundant for two reasons.
    1. It has really no effect in this case since you are not nesting floats
    2. overflow: auto is not going to work anyway in IE6 for float containment in IE6 because it does not trigger hasLayout (in contrast to IE7).

    The reliable way to trigger hasLayout in both IE6 and IE7 is using zoom: 1 instead of using overflow: auto or setting an explicit width. It should do the trick in your case too.

    1. http://www.satzansatz.de/cssd/onhavinglayout.html

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Hehe, I knew you'd find it koyama - You're the bug-hunter!!
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Excavator View Post
    Hehe, I knew you'd find it koyama - You're the bug-hunter!!
    Yeah... I think this one was one of the rare ones, but I knew I had seen it before

  • #7
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Some new avatar ideas for you koyama:


    and my favorite:
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #8
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Thank you very much. I am overwhelmed. They are really good candidates. The last one even looks like... ehhh... an Excavator


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •