- Description
Set whether an block element will allow itself on the same horizontal space as floated elements. The value of this property lists the sides where floating elements are not accepted.
- Example
div{
width:50px;
height:50px;
float:left;
background:#CCC;
border:solid 1px #50A4AB;
margin: 5px;
}
#one{
clear:both;
}
#two{
clear:left;
}
#three{
clear:right;
}- Values
- none, left, right, both
- Default value
- none
- Introduced in CSS version
- 1
- Applies to elements
- block level elements
- Inherited
- No
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 5 1 1 6 0.2
Belongs to:
See the full list CSS properties and browser support: CSS Properties