CSS - Hanging -Interpunktionseigenschaft
Beispiel
Platzieren Sie ein Satzzeichen (falls vorhanden) außerhalb der Startkante der ersten Zeile im Element <p>:
p
{
hanging-punctuation: first;
}
Definition und Verwendung
Die hanging-punctuation
Eigenschaft legt fest, ob ein Satzzeichen außerhalb des Zeilenrahmens am Anfang oder am Ende einer ganzen Textzeile platziert werden darf.
Standardwert: | keiner |
---|---|
Vererbt: | ja |
Animierbar: | Nein. Lesen Sie mehr über animierbare |
Ausführung: | CSS3 |
JavaScript-Syntax: | Objekt .style.hangingPunctuation="first" |
Browser-Unterstützung
Keiner der großen Browser unterstützt die Eigenschaft Hanging Interpunktion.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
CSS-Syntax
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Eigenschaftswerte
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 |