CSS3 hanging-punctuation property
Example
Place a punctuation mark at the start edge of the first line of a p element:
p
{
hanging-punctuation:first;
}
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| hanging-punctuation | Not supported | Not supported | Not supported | Not supported | Not supported |
Currently no major browser supports the hanging-punctuation property.
Property definition and usage
The hanging-punctuation property specifies whether a punctuation mark may be placed outside the line box at the start or end of a line of text.
| Default value: | none |
|---|---|
| Inherited: | yes |
| Version: | CSS3 |
| JavaScript syntax: | object.style.hangingPunctuation="first" |
Syntax
hanging-punctuation: none|first|last|allow-end|force-end;
| Value | Description |
|---|---|
| none | Do not place punctuation marks outside the line box at the start or end of a line of text. |
| first | Punctuation hangs outside the start edge of the first line. |
| last | Punctuation hangs outside the end edge of the first line. |
| allow-end | |
| force-end |