Proprietà CSS di punteggiatura sospesa
Esempio
Metti un segno di punteggiatura (se presente) al di fuori del bordo iniziale della prima riga nell'elemento <p>:
p
{
hanging-punctuation: first;
}
Definizione e utilizzo
La hanging-punctuation
proprietà specifica se un segno di punteggiatura può essere posizionato all'esterno della casella di riga all'inizio o alla fine di un'intera riga di testo.
Valore di default: | nessuno |
---|---|
Ereditato: | sì |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.hangingPunctuation="first" |
Supporto browser
Nessuno dei principali browser supporta la proprietà di punteggiatura sospesa.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Sintassi CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Valori di proprietà
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 |