CSS Clear Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

The clear property defines the sides of the element that should not float. It turns off the floating to that specific side.

Syntax

clear: [value];

Possible values

  • none
  • left
  • right
  • both
  • inherit

Initial Value

none

Applies To

Block-level elements

Inherited

No

Media

Visual

Example

clear: right;


View All CSS Properties