Proprietà CSS overflow-wrap
Esempio
Consenti al browser di interrompere le righe con parole lunghe, se traboccano il contenitore:
div {
overflow-wrap: break-word;
}
Definizione e utilizzo
La overflow-wrap
proprietà specifica se il browser può interrompere o meno le righe con parole lunghe, in caso di overflow del contenitore.
Valore di default: | normale |
---|---|
Ereditato: | sì |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.overflowWrap="normale" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
overflow-wrap | 23.0 | 18.0 | 49.0 | 6.1 | 12.1 |
Sintassi CSS
overflow-wrap: normal|anywhere|break-word|initial|inherit;
Valori di proprietà
Value | Description | Play it |
---|---|---|
normal | Long words will not break, even if they overflow the container. This is default | |
anywhere | Long words will break if they overflow the container | |
break-word | Long words will break if they overflow the container | |
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: CSS Overflow