width
width is a CSS property in the Box Model category. Sets the width of an element. The syntax is width: <length> | <percentage> | auto | max-content | min-content | fit-content. Accepted values include <length>, <percentage>, auto, max-content, min-content, fit-content. How the values behave: use px for fixed sizes, % for relative sizing, auto for browser-calculated, or fit-content/min-content/max-content for content-based sizing. A typical example: width: 100%; It is commonly applied to markup such as <div class="demo">Sample</div> Browser support: Chrome 1+, Firefox 1+, Safari 1+, Edge 12+. A close relative is height, which sets the height of an element. A close relative is min-width, which sets the minimum width of an element. A close relative is max-width, which sets the maximum width of an element. More about this category: CSS box model properties — margin, padding, border, and content area. Related Box Model entries: height, min-width, max-width, min-height, max-height, margin, margin-top, margin-right.