Browse documentation
Reference / Typography
Hyphenation
Let the browser insert hyphens using the document language or explicitly mark acceptable break points.
Working example
An interdisciplinary publication.
A soft hyphen is invisible until a break occurs there. Automatic hyphenation depends on the browser’s dictionary for the element’s lang attribute.
<p lang="en" class="max-w-[12ch] hyphens-manual font-serif text-xl">
An inter­disciplinary publication.
</p>Class reference
| Class | CSS declarations |
|---|---|
hyphens-none | hyphens: none; |
hyphens-manual | hyphens: manual; |
hyphens-auto | hyphens: auto; |
View full generated CSS
.hyphens-auto {
hyphens: auto;
}
.hyphens-manual {
hyphens: manual;
}
.hyphens-none {
hyphens: none;
}