Previous Message
Next Message

simple margins not collapsing

Sent by Bobby Jack on 16 April 2009 18:06


--- On Thu, 4/16/09, Trevor Nicholls [EMAIL-REMOVED]> wrote:

> Can somebody please explain why the lower margin of my
> first para and the
> upper margin of my "fragment" div are not
> collapsing?

You fragment div is floated left. From the spec.
(http://www.w3.org/TR/CSS21/box.html#collapsing-margins):

"Vertical margins between a floated box and any other box do not collapse"

> How could I fix this?

Turn the float off (if the div doesn't need it) or remove the margin.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: