Property | Description | Possible Values | Examples |
---|---|---|---|
height | Declares the height of the element. | Lengths, percentages, and the predefined value auto. | div { height:200px; } div { height:50%; } |
max-height | Declares the maximum height of the element. | Lengths, percentages, and the predefined value auto. | div { max-height:200px; } div { max-height:50%; } |
min-height | Declares the minimum height of the element. | Lengths, percentages, and the predefined value auto. | div { min-height:200px; } div { min-height:50%; } |
width | Declares the width of the element. | Lengths, percentages, and the predefined value auto. | div { width:500px; } div { width:75%; } |
max-width | Declares the maximum width of the element. | Lengths, percentages, and the predefined value auto. | div { max-width:500px; } div { max-width:75%; } |
min-width | Declares the minimum width of the element. | Lengths, percentages, and the predefined value auto. | div { min-width:500px; } div { min-width:75%; } |