max-width
Utilities for setting the maximum width constraint of an element.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let article = container(body).tw(tw!("w-full max-w-3xl mx-auto px-6"));use iss::typed::*;
let style = IssStyle::new().w_full().max_w_3xl().mx_auto().px(6);Class Reference
Section titled “Class Reference”| 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) |