# Property Description

The width property sets the width of an element. This does not include padding, borders, or margins.

# Property Values

Value | Description
--- | ---
auto | (default) The browser calculates the width
length | Defines the width in px, cm, etc.
% | Defines the width in percent of the containing block
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example sets the height and width for a paragraph.

    p.note {
      height:100px;
      width:100px;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS1