CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: "width" CSS property

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
Other (in @viewport)<viewport-length>{1,2}, where <viewport-length> = "auto | <length> | <percentage>"
CSS Box Sizing Level 3"auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>)"

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