SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE < 8 Margin collapse bug - Does it apply only to parent & child elements?

    In the collapsing margins article, it's mentioned that "IE<8 won't collapse the margins if the elements has hasLayout property".

    Does it affect only parent & child elements or adjacent elements as well?

    Does both elements need to have hasLayout property for IE<8 to not collapse the margins?

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,602
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Not to be accused of being rude, but have you run tests to see if this is the case? It's pretty straight forward to do so .
    Always looking for web design/development work. Willing to do it cheap to build portfolio!

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Ryan,

    I had run the tests in IE6 and weirdly the margin collapsed for both adjacent & parent and child elements. There was no bug.

    I guess it might have fixed in a later release candidate. That is why I asked in the forum.


Bookmarks

Posting Permissions

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