CSS Width Property

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.

Example:

#Basement {
  width: 728px;
}

Inherited? - NO!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.