Propiedad de justificación de texto CSS
Ejemplo
Establezca el método de justificación en "inter-word" cuando text-align esté configurado en "justify":
div
{
text-align: justify;
text-justify: inter-word;
}
Definición y uso
La text-justify
propiedad especifica el método de justificación del texto cuando text-align se establece en "justificar".
Valor por defecto: | auto |
---|---|
Heredado: | sí |
Animable: | No. Leer sobre animable |
Versión: | CSS3 |
Sintaxis de JavaScript: | objeto .style.textJustify="inter-word" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
*Esta característica se encuentra detrás de la preferencia Habilitar características experimentales de la plataforma web (debe establecerse en Habilitado). Para cambiar las preferencias en Chrome: escriba "chrome://flags" en el navegador Chrome. Para cambiar las preferencias en Opera: escriba "banderas" en el navegador Opera.
Sintaxis CSS
text-justify: auto|inter-word|inter-character|none|initial|inherit;
Valores de propiedad
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 |