Sizing

max-height to Tailwind

Becomes max-h-*, drawing on the same spacing scale as height.

The 63 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for max-height.

max-height values and their classes

CSSTailwind
max-height: 0;max-h-0
max-height: 0.125rem;max-h-0.5
max-height: 0.25rem;max-h-1
max-height: 0.375rem;max-h-1.5
max-height: 0.5rem;max-h-2
max-height: 0.625rem;max-h-2.5
max-height: 0.75rem;max-h-3
max-height: 0.875rem;max-h-3.5
max-height: 1lh;max-h-lh
max-height: 1px;max-h-px
max-height: 1rem;max-h-4
max-height: 1.25rem;max-h-5
max-height: 1.5rem;max-h-6
max-height: 1.75rem;max-h-7
max-height: 2rem;max-h-8
max-height: 2.25rem;max-h-9
max-height: 2.5rem;max-h-10
max-height: 2.75rem;max-h-11
max-height: 3rem;max-h-12
max-height: 3.5rem;max-h-14
max-height: 4rem;max-h-16
max-height: 5rem;max-h-20
max-height: 6rem;max-h-24
max-height: 7rem;max-h-28
max-height: 8rem;max-h-32
max-height: 8.333333%;max-h-1/12
max-height: 9rem;max-h-36
max-height: 10rem;max-h-40
max-height: 11rem;max-h-44
max-height: 12rem;max-h-48
max-height: 13rem;max-h-52
max-height: 14rem;max-h-56
max-height: 15rem;max-h-60
max-height: 16rem;max-h-64
max-height: 16.666667%;max-h-1/6
max-height: 18rem;max-h-72
max-height: 20%;max-h-1/5
max-height: 20rem;max-h-80
max-height: 24rem;max-h-96
max-height: 25%;max-h-1/4
max-height: 33.333333%;max-h-1/3
max-height: 40%;max-h-2/5
max-height: 41.666667%;max-h-5/12
max-height: 50%;max-h-1/2
max-height: 58.333333%;max-h-7/12
max-height: 60%;max-h-3/5
max-height: 66.666667%;max-h-2/3
max-height: 75%;max-h-3/4
max-height: 80%;max-h-4/5
max-height: 83.333333%;max-h-5/6
max-height: 91.666667%;max-h-11/12
max-height: 100%;max-h-full
max-height: 100dvh;max-h-dvh
max-height: 100dvw;max-h-dvw
max-height: 100lvh;max-h-lvh
max-height: 100lvw;max-h-lvw
max-height: 100svh;max-h-svh
max-height: 100svw;max-h-svw
max-height: 100vh;max-h-screen
max-height: fit-content;max-h-fit
max-height: max-content;max-h-max
max-height: min-content;max-h-min
max-height: none;max-h-none

The spacing scale

max-height is written with max-h-*, which counts in steps of 0.25rem. The step number is the multiplier, so the class number is the value divided by that step rather than a pixel count.

Values that are not on the scale

Anything without a named class is written as an arbitrary value in square brackets. The converter falls back to this rather than rounding your CSS to the nearest class, because silently changing a value is worse than an ugly class name.

max-h-[your value]

Other sizing properties

Converting a whole stylesheet?

Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.

Open the converter