Skip to main content

MaxHeight

Typeobject
Backlinks1

This property is used to limit the height of an element and is only available when the size type is fixed or relative. By setting the max-height property of an element, you can specify the maximum height of the element in the vertical direction, meaning that it will not exceed this height. This is useful for ensuring that elements are not overly stretched when displayed on different devices.

PropertyTypeRequired
classstringRequired
valueLengthRequired

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"maxHeight"

value​

Required

Description

Available types include only fixed and relative.

Type

Length