OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
Small CSS problem
This page's ID:
30949
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Floated items normally don't affect the vertical flow of the document, so the height of the container is basically set as if the floats didn't exist. But the "clear" property specifies that an element can not be adjacent to a floated element. If it's in the DOM after the floated element it will be displayed below the float rather than next to it. So in that way you can get the float to affect the flow vertically. The empty div with style="clear: both;" is a common way to prop up the height of an element containing floated elements. It's also the basis for one of the "min-height" hacks for IE.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »