Forum Moderators: not2easy
Floats are removed from their parents flow (they still interact with it, but are not part of it.)
To get wha tyou seek to happen:
- either float the parent too (floats to encompass their children, it's one of the exceptions, but in general this leads to more problems instead of less.
- add an element after the floated one but inside the parent (e.g.
<br class="clear" /> ) and then do not float this element, but do give it the clear property (e.g. .clear {clear:both;} )