Alan Gresley wrote:
>
> IE will transfer a margin-bottom from an element, being
> default or otherwise to below a float. The element in
> question can come before or after the float in the source, or
> contain the float.
>
> Tobbe, you example gave me the push to complete the test page
> I had been doing. The height of the actual float is a
> somewhat strange factor in the first three examples and the
> last two examples (base on your example). If the height of
> float is greater than the margin-bottom of the element with
> the margin, then the bug is triggered. The bug is always
> present if the element with the margin-bottom comes before
> the float. Here the demo.
>
> http://css-class.com/test/margintransferencebug.htm

Thanks Alan, this looks like a good analysis of this bug.

For the cases when the float height is a factor I think that the trigger is
simply when "the bottom of the float is below the bottom margin edge of the
other element" (is not stricly necessary to have the height of the float
greater than the margin-bottom value.)

Interesting is the last case of your second series (div before the float)
where a padding bottom on the wrapper prevents the margin replication (btw,
in this series the problem goes away if the clear is inside the wrapper.)


Best regards,
Bruno

--
Bruno Fassino http://www.brunildo.org/test

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to