IE7 ignoring margin in a div following an absolute positioned div

Posted by 0al0 on Stack Overflow See other posts from Stack Overflow or by 0al0
Published on 2010-07-05T09:48:42Z Indexed on 2010/12/24 11:54 UTC
Read the original article Hit count: 271

I have two divs inside a container, the first one has absolute positioning. In ie7, the second div apparently ignores the top margin. Padding seems to work fine, but for visual reasons I have to use margin.

I know the culprit is the absolute positioned div because if i remove it the following div works fine.

This is only happening in ie7 (not even in ie6).

Help!

Edit: I just found a solution which consists of giving the parent div padding-top just for ie7. So I would just like to know why does this happen, and if there is one, a cleaner solution, but I dont need more dirty hacks..

© Stack Overflow or respective owner

Related posts about html

Related posts about css