Forum Moderators: not2easy

Message Too Old, No Replies

Problem with clearing floats

         

bandman05

9:16 pm on Aug 2, 2007 (gmt 0)

10+ Year Member



I want an element to clear within its parent div, but not its parent's parent div. Is there a way to do this or a workaround?

bandman05

9:52 pm on Aug 2, 2007 (gmt 0)

10+ Year Member



I found the answer ...

[positioniseverything.net...]

If the parent element is floated then the clear inside that parent element will be constrained to just that element.

If the parent element is not floated, then any clears inside it will clear all floating elements, not just the ones inside the parent div.