The hanging-punctuation
property designates the placement of a punctuation mark outside the line box at the beginning or at the end of a full line of text.
Example:
p {
hanging-punctuation: last;
}
none
Default value. There will be no placement of a punctuation mark outside the line box at the beginning or at the end of a full line of text.
first
Punctuation can hang outside the start edge of the first line.
last
Punctuation can hang outside the end edge of the last line.
allow-end
If the punctuation does not otherwise fit prior justification, it can hang outside the end edge of all lines.
force-end
If justification is enabled on this line, punctuation will be forced to hang. It can hang outside the end edge of all lines.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of hanging-punctuation
? Submit a codepen.io demo and we'll showcase it here ↴