CSS - Dimension


Advertisements


This is a complete reference guide for web developers where we have listed all the CSS properties related to dimension defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets, Level 2.

Click any property to see its description with examples −

Property Description

height

Defines the height of an element.

line-height

Sets the distance between adjacent text baselines.

max-height

max-height property is used to constrain the height of an element.

max-width

max-width property is used to set the maximum width of an element.

min-height

min-height property is used to constrain the height of an element.

min-width

min-width property is used to constrain the width of an element.

width

Defines the width of an element.

css_references.htm

Advertisements