The "width" CSS Property

This property specifies the width of the content area or border area (depending on 'box-sizing') of certain boxes.

Values for "width"
CSS LevelValue
CSS 2.1 (in @viewport)(invalid)
CSS3 (in @viewport)(invalid)
Other (in @viewport)<viewport-length>{1,2}, where <viewport-length> is "auto", "device-width", "device-height", a positive length, or a positive percentage
CSS 2.1a length, a percentage, or "auto"
CSS3"[<length> | <percentage>] && [border-box | content-box]? | available | min-content | max-content | fit-content | auto"

Syntax Notes for "width"

  • Negative values are illegal.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem