/

HTML / CSS / JavaScript Tutorial

CSS Property: clear

[this page | pdf | back links]

The CSS (CSS1) clear property indicates on which sides of an element a floating element is not allowed to float.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

both

Floating elements not allowed on either left or right side

left

Floating elements not allowed on left side

none

(default value). Allows floating elements on both sides

right

Floating elements not allowed on right side

 

Default Value:

none

JavaScript syntax:

e.g. object.style.clear="both"

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile