Computer >> Computer tutorials >  >> Programming >> CSS

CSS hanging-punctuation Property


Use the hanging-punctuation property to set whether a punctuation character may be placed outside the line box.

It has the following values

S.No
Property Value & Description
1.
None
No punctuation mark
2.
First
Punctuation outside the start edge of the first line
3.
Last
Punctuation outside the end edge of the last line

Set it like this in your web page −

hanging-punctuation: none;
hanging-punctuation: first;
hanging-punctuation: last;