Skip to content

max-width

Utilities for setting the maximum width constraint of an element.

ISS preview
Iced + ISS preview demonstrating max-width
ISS preview for max-width
use iced::widget::container;
use iss::{tw, TwExt};
let article = container(body).tw(tw!("w-full max-w-3xl mx-auto px-6"));
Tailwind Class CSS Property / Effect iss::typed Builder
max-w-<n> max-width: calc(var(--spacing) * <n>); .max_w(96)
max-w-3xs .. max-w-7xl max-width: 16rem .. 80rem; .max_w_lg() / .max_w_3xl()
max-w-none / max-w-full max-width: none / 100%; .max_w_none() / .max_w_full()
max-w-min / max-w-max / max-w-fit Intrinsic max-width keywords; .max_w_fit()
max-w-[720px] max-width: 720px; .max_w_px(720)

width · min-width · max-inline-size