hanging-punctuation

Allows punctuation marks (like quotation marks or hyphens) to be placed outside the text box alignment, making the edges of a paragraph look cleaner and straighter.

It is documented as part of the CSS Text specification.

/* Usage Example */
blockquote {
  /* Hangs opening and closing quotes outside the blockquote margin */
  hanging-punctuation: first last;
}

/* Syntax */
hanging-punctuation: none;
hanging-punctuation: first;
hanging-punctuation: force-end;
hanging-punctuation: allow-end;
hanging-punctuation: last;

/* Global values */
hanging-punctuation: inherit;
hanging-punctuation: initial;
hanging-punctuation: revert;
hanging-punctuation: revert-layer;
hanging-punctuation: unset;
Limited availability Since 2020 14% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

10+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC