max-height: ***; min-height: ***;
The max-height property specifies the maximum height of an element, and the min-height property specifies the minimum height of an element.
div {
max-height: 350px;
min-height: 250px;
}
Property |
Value |
Explanation |
max-height |
length, %, or none |
the size of the maximum height (the default is none) |
min-height |
length or % |
the size of the minimum height (the default is 0) |
Example