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

Set whether a punctuation character may be placed outside the line box with CSS


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

Sr.NoProperty Value & Description
1.Last
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 on your web page

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