CSS Clear Property

The Clear Property of CSS can be used together with float, to specify if an floated element will allow content on its left or right side.

Possible Values

noneThe element flows normally.
leftThe element is treated as a block to its left.
rightThe element is treated as a block to its right.

Example

div {
  float: left;
  clear: left;
}

Inherited? NO!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.