The max-height property is used to set the maximum height of an element.This prevents the value of the height property from becoming larger than max-height.Note: The value of the max-height property overrides height.
max-height: none|length|initial|inherit;
p { max-height: 50px; }