why does firefox let floated elements NOT stretch the height of container divs? is there a fix? this has caused me no end of annoyance. tia
why does firefox let floated elements NOT stretch the height of container divs? is there a fix? this has caused me no end of annoyance. tia
Because it's not supposed to, and other conforming browsers (like Opera) will act the same way.Originally Posted by gusblake
Floated elements are removed from the normal flow (like absolutely-positioned elements) so they do not affect the layout of (non-floated) block boxes. Only other floats and in-line boxes shift when encountering a float.
Nothing is broken (except IE), but if you need to stretch a container, you can add an element (a div, for example) with the clear property which will move it below the bottom-most float.is there a fix?
Mike
thanks
Bookmarks