CSS hangende interpunctie- eigenschap
Voorbeeld
Plaats een leesteken (indien aanwezig) buiten de beginrand van de eerste regel in het <p>-element:
p
{
hanging-punctuation: first;
}
Definitie en gebruik
De hanging-punctuation
eigenschap geeft aan of een leesteken buiten het regelvak mag worden geplaatst aan het begin of aan het einde van een volledige tekstregel.
Standaardwaarde: | geen |
---|---|
geërfd: | Ja |
Animeerbaar: | Nee. Lees over animeren |
Versie: | CSS3 |
JavaScript-syntaxis: | object .style.hangingPunctuation="first" |
Browserondersteuning
Geen van de belangrijkste browsers ondersteunt de eigenschap hangende interpunctie.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
CSS-syntaxis
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Eigendomswaarden
Value | Description |
---|---|
none | No punctuation mark may be 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. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |