Propriété CSS hanging-ponctuation
Exemple
Placez un signe de ponctuation (le cas échéant) à l'extérieur du bord de début de la première ligne dans l'élément <p> :
p
{
hanging-punctuation: first;
}
Définition et utilisation
La hanging-punctuation
propriété spécifie si un signe de ponctuation peut être placé à l'extérieur de la zone de ligne au début ou à la fin d'une ligne complète de texte.
Valeur par défaut: | rien |
---|---|
Hérité: | Oui |
Animable : | non. En savoir plus sur l'animation |
Version: | CSS3 |
Syntaxe JavaScript : | objet .style.hangingPunctuation="first" |
Prise en charge du navigateur
Aucun des principaux navigateurs ne prend en charge la propriété hanging-punctuation.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Syntaxe CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Valeurs de propriété
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 |