Easy Tutorial
❮ Pr Outline Style Css Selectors ❯

CSS clear Property

Example

Specify that no floating elements are allowed on the left or right side of a paragraph:


Property Definition and Usage

The clear property specifies that no floating elements are allowed on the left or right side of a paragraph.

Default value: none
Inherited: no
--- ---
Version: CSS1
--- ---
JavaScript syntax: object.style.clear="left"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
clear 1.0 5.0 1.0 1.0 6.0

Property Values

Value Description
left No floating elements allowed on the left side.
right No floating elements allowed on the right side.
both No floating elements allowed on either the left or the right side.
none Default value. Floating elements are allowed on both sides.
inherit Specifies that the value of the clear property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Float

❮ Pr Outline Style Css Selectors ❯