Skip to content

Height & Width

Height & Width Properties

Elevate CSS features a number of height and width properties. These properties include:

PropertyExpected ValuesExample
min-wSpacingToken (e.g., d3)min-w:d4
min-hSpacingToken (e.g., d3)min-h:d4
max-wSpacingToken (e.g., d3)max-w:d4
max-hSpacingToken (e.g., d3)max-h:d4
wSpacingToken (e.g., d3)w:d4
hSpacingToken (e.g., d3)h:d4

Other Modifier Values

Note that the height and width properties above also accept the following modifier values:

ValueDescriptionExample
0Sets the dimension to 0w:0
fullSets the dimension to 100%w:full
wScreenSets the dimension to 100vww:wScreen
hScreenSets the dimension to 100vhh:hScreen
min-contentSets the dimension to min-contentw:min-content
max-contentSets the dimension to max-contentw:max-content
fit-contentSets the dimension to fit-contentw:fit-content
autoSets the dimension to autow:auto