Module max_height

Module max_height 

Source
Expand description

Utilities for setting the maximum height of an element.

Class Properties
max-h-<float>max-height: <float / 4>rem;
max-h-<integer>/<integer>max-height: (<integer>/<integer>)%;
max-h-pxmax-height: 1px;
max-h-nonemax-height: none;
max-h-fullmax-height: 100%;
max-h-automax-height: auto;
max-h-screenmax-height: 100vh;
max-h-minmax-height: min-content;
max-h-maxmax-height: max-content;
max-h-fitmax-height: fit-content;
max-h-svhmax-height: 100svh;
max-h-lvhmax-height: 100lvh;
max-h-dvhmax-height: 100dvh;

§Tailwind compatibility

Maximum height values don’t follow Tailwind’s philosophy of limiting possible values and all spacing values are supported. They are however perfectly compatible with Tailwind’s values.

§Arbitrary values

Any <length> or <percentage> property is allowed as arbitrary value. For example, max-h-[3rem].

Tailwind reference