Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box.
The hanging-punctuation property may be specified with one, two, or three space-separated values.
No character hangs.
firstAn opening bracket or quote at the start of the first formatted line of an element hangs. This applies to:
A closing bracket or quote at the end of the last formatted line of an element hangs. This applies to:
A stop or comma at the end of a line hangs if it does not otherwise fit prior to justification.
Stops and commas that are allowed to hang include:
User agents may include additional characters.
| none |
| all elements |
| yes |
| as specified |
| discrete |
| CSS Text Module Level 3 # hanging-punctuation-property |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 20, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.