Max-Height
vel-src: sizing.css
Utilities for setting the maximum height of an element.
| Class | Properties |
|---|---|
| vel-max-h-none | max-height: none |
| vel-max-h-full | max-height: 100% |
| vel-max-h-screen | max-height: 100vh |
| vel-max-h-fit | max-height: fit-content |
| vel-max-h-16 | max-height: 4rem |
| vel-max-h-32 | max-height: 8rem |
| vel-max-h-64 | max-height: 16rem |
| vel-max-h-96 | max-height: 24rem |
Examples
Capped height with scroll
vel-max-h-24 limits height to 6rem.
Content below gets scrolled.
More content here.
Even more content.