Max Height

max_height Sets the maximum height.

Example

Box { max_height: screen }

Tailwind values

ValueCSS value
00px
px1px
0.50.125rem / 2px
1, 1.5, 2, 2.5, 3, 3.5, 40.25rem through 1rem / 4px through 16px
5, 6, 7, 8, 9, 10, 11, 121.25rem through 3rem / 20px through 48px
14, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 603.5rem through 15rem
64, 72, 80, 9616rem, 18rem, 20rem, 24rem

Other useful values are none, full, screen, svh, lvh, dvh, min, max, and fit. Arbitrary values use square brackets: [calc(100dvh-4rem)].