Propiedad de envoltura de desbordamiento de CSS
Ejemplo
Deje que el navegador pueda romper líneas con palabras largas, si desbordan el contenedor:
div {
overflow-wrap: break-word;
}
Definición y uso
La overflow-wrap
propiedad especifica si el navegador puede o no romper líneas con palabras largas, si desbordan el contenedor.
Valor por defecto: | normal |
---|---|
Heredado: | sí |
Animable: | No. Leer sobre animable |
Versión: | CSS3 |
Sintaxis de JavaScript: | objeto .style.overflowWrap="normal" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
overflow-wrap | 23.0 | 18.0 | 49.0 | 6.1 | 12.1 |
Sintaxis CSS
overflow-wrap: normal|anywhere|break-word|initial|inherit;
Valores de propiedad
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 |
páginas relacionadas
Tutorial de CSS: Desbordamiento de CSS