CSS hanging punctuation Property
CSS hanging-punctuation Property
The hanging-punctuation property is used to specify whether a punctuation mark is placed outside the line box at the start or at the end of a full line of text.
Default Value:-
Its default value is none.
Syntax:-
Its syntax is:- hanging-punctuation: none | first | last | allow-end | force-end | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
none | No punctuation mark is placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |