Michael Stevens wrote: [snip] > Now I gotta admit to being a dummy. I would've sworn I tried exactly what I > wanted to do and it cleared the form elements in content div AND the menu > div. I just tried it again with the content floated and it works as I want. > > Mayby that's what Thierry meant by floating content? When the container div > is floated, clears inside it only clear floats within that container? I > hadn't thought of that... > > Thanks, > > Mike
That is because a float generates a new block formatting context [1] and the rules for clearance [2] states. "The 'clear' property does not consider floats inside the element itself or in other block formatting contexts." 1. <http://www.w3.org/TR/CSS21/visuren.html#block-formatting> 2. <http://www.w3.org/TR/CSS21/visuren.html#propdef-clear> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [[email protected]] 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/
