Browse documentation
Reference / Sizing
Max width
Limit a container’s width while allowing it to fit a smaller screen. Named sizes, breakpoint widths and text measures are available.
Working example
Every sheet carries a trace of the hand that folded it.
A ch-based measure scales with the font. Max-w-prose provides a default reading width of 65ch.
<blockquote class="max-w-[32ch] border-l-2 pl-3 font-serif text-xl">
Every sheet carries a trace of the hand that folded it.
</blockquote>Class reference
| Class | CSS declarations |
|---|---|
max-w-xs | max-width: 20rem; |
max-w-lg | max-width: 32rem; |
max-w-prose | max-width: 65ch; |
max-w-screen-md | max-width: 768px; |
max-w-full | max-width: 100%; |
max-w-none | max-width: none; |
max-w-[32ch] | max-width: 32ch; |
View full generated CSS
.max-w-\[32ch\] {
max-width: 32ch;
}
.max-w-full {
max-width: 100%;
}
.max-w-lg {
max-width: 32rem;
}
.max-w-none {
max-width: none;
}
.max-w-prose {
max-width: 65ch;
}
.max-w-screen-md {
max-width: 768px;
}
.max-w-xs {
max-width: 20rem;
}