Skip to content

max-height

Utilities for setting the maximum height constraint of an element.

ISS preview
Iced + ISS preview demonstrating max-height
ISS preview for max-height
use iced::widget::container;
use iss::{tw, TwExt};
let list = container(rows).tw(tw!("max-h-72 overflow-y-auto rounded-lg border border-zinc-800"));
Tailwind Class CSS Property / Effect iss::typed Builder
max-h-<n> max-height: calc(var(--spacing) * <n>); .max_h(80)
max-h-none / max-h-full / max-h-screen max-height: none / 100% / 100vh; .max_h_none() / .max_h_full()
max-h-fit / max-h-dvh Intrinsic and dynamic viewport max-height; .max_h_fit()
max-h-[420px] max-height: 420px; .max_h_px(420)

height · min-height · overflow · max-block-size