By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Width Property

Edited: 2011-07-24 19:00

The width Property of CSS is used to define the width for elements.

Note. Its recommended to give your percentage based layouts a max-width, and min-width.

You can use our StyleSheet Selector to allow your users to control the max-width.

Possible Values

Read: Units of Measurement, to understand the many possible values.


#Basement {
  width: 728px;

Inherited? - NO!