Proprietà di spaziatura delle parole CSS
Esempio
Specifica che lo spazio tra le parole negli elementi <p> deve essere 30 pixel:
p
{
word-spacing: 30px;
}
Definizione e utilizzo
La word-spacing
proprietà aumenta o diminuisce lo spazio bianco tra le parole.
Nota: sono ammessi valori negativi.
Valore di default: | normale |
---|---|
Ereditato: | sì |
Animabile: | sì. Leggi su animabile |
Versione: | CSS1 |
sintassi JavaScript: | oggetto .style.wordSpacing="20px" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
word-spacing | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
Sintassi CSS
word-spacing: normal|length|initial|inherit;
Valori di proprietà
Value | Description | Play it |
---|---|---|
normal | Defines normal space between words (0.25em) . This is default | |
length | Defines an additional space between words (in px, pt, cm, em, etc). Negative values are allowed. Read about length units | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Pagine correlate
Tutorial CSS: testo CSS
Riferimento HTML DOM: proprietà wordSpacing