# Property Description

The clear property sets which sides of an element are not allowed adjactent floating elements.

# Property Values

Value | Description
--- | ---
none | (default) Allows floating elements on both sides
left | No floating elements allowed on the left
right | No floating elements allowed on the right
both | No floating elements allowed on the left or the right
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example shows how to prevent floating elements on the left or the right side of an image.

    img {
      float:left;
      clear:both;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS1