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

A ch-based measure scales with the font. Max-w-prose provides a default reading width of 65ch.

HTML
<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

ClassCSS declarations
max-w-xsmax-width: 20rem;
max-w-lgmax-width: 32rem;
max-w-prosemax-width: 65ch;
max-w-screen-mdmax-width: 768px;
max-w-fullmax-width: 100%;
max-w-nonemax-width: none;
max-w-[32ch]max-width: 32ch;
View full generated CSS
Compiled 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;
}