Proprietà di giustificazione del testo CSS
Esempio
Imposta il metodo di giustificazione su "inter-word" quando l'allineamento del testo è impostato su "justify":
div
{
text-align: justify;
text-justify: inter-word;
}
Definizione e utilizzo
La text-justify
proprietà specifica il metodo di giustificazione del testo quando text-align è impostato su "justify".
Valore di default: | auto |
---|---|
Ereditato: | sì |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.textJustify="inter-parola" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
*Questa funzione è alla base della preferenza Abilita funzionalità della piattaforma Web sperimentale (deve essere impostata su Abilitata). Per modificare le preferenze in Chrome: digita "chrome://flags" nel browser Chrome. Per modificare le preferenze in Opera: digita "flags" nel browser Opera.
Sintassi CSS
text-justify: auto|inter-word|inter-character|none|initial|inherit;
Valori di proprietà
Value | Description | Play it |
---|---|---|
auto | The browser determines the justification algorithm | |
inter-word | Increases/Decreases the space between words | |
inter-character | Increases/Decreases the space between characters | |
none | Disables justification methods | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |