height
height is a CSS property in the Box Model category. Sets the height of an element. The syntax is height: <length> | <percentage> | auto | max-content | min-content | fit-content. A typical example: height: 200px; 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 width, which sets the width 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: width, min-width, max-width, min-height, max-height, margin, margin-top, margin-right. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support.