CSS Property: clear
How a box following a floated box should behave.
Possible Values
Value | Description |
---|---|
none | Floated boxes are not cleared — content will flow around them. Default. |
left | Left-floated boxes are cleared. Box is placed underneath. |
right | Right-floated boxes are cleared. Box is placed underneath. |
both | All floated boxes are cleared. Box is placed underneath. |
inherit | |
initial | |
unset |
Example
#canoe { float: left; }
#fish { clear: left; }