hanging-punctuation
Limited availability18% of users
Allows punctuation to hang outside the line box. Creates traditional typography with punctuation hanging in margins.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome, Edge or Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- Yes
Quick example
blockquote { hanging-punctuation: first last; }Syntax
none | [ first || [ force-end | allow-end ] || last ]Examples
Allow quotes to hang outside text box
blockquote {
hanging-punctuation: first;
}
/* Opening quote sits outside the left margin */Let punctuation extend beyond the margin for cleaner text alignment.
Hang multiple punctuation types
p {
hanging-punctuation: first last allow-end;
}
/* Quotes and periods hang outside margins */Control where punctuation can hang for professional typography.
Common pitfalls
- Limited browser supporthanging-punctuation is CSS Text 3 but has minimal browser support. Use as progressive enhancement only; fallback to regular alignment for production.
- Requires careful font metricshanging-punctuation behavior depends on font metrics and character widths. Test thoroughly with your chosen font.
hanging-punctuation browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage18%of people can use this82% use a browser without it.
Browsers
26.5+Mobile
26.5+iOS