CSS Dimension
The CSS dimension properties allow you to control the height and width of an element.
All CSS Dimension Properties
The number in the "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).
Property | Description | Values | CSS |
---|---|---|---|
height | Sets the height of an element | auto length % inherit | 1 |
max-height | Sets the maximum height of an element | none length % inherit | 2 |
max-width | Sets the maximum width of an element | none length % inherit | 2 |
min-height | Sets the minimum height of an element | length % inherit | 2 |
min-width | Sets the minimum width of an element | length % inherit | 2 |
width | Sets the width of an element | auto length % inherit | 1 |