Propriedade do modo de escrita CSS
Exemplo
Especifique se as linhas de texto são dispostas horizontalmente ou verticalmente:
p.test1 {
writing-mode: horizontal-tb;
}
p.test2 {
writing-mode: vertical-rl;
}
span.test2 {
writing-mode:
vertical-rl;
}
Definição e uso
A writing-mode
propriedade especifica se as linhas de texto são dispostas horizontalmente ou verticalmente.
Valor padrão: | horizontal-tb |
---|---|
Herdado: | sim |
Animavel: | não. Leia sobre animáveis |
Versão: | CSS3 |
Sintaxe JavaScript: | objeto .style.writingMode="vertical-rl" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
writing-mode | 48.0 | 12.0 | 41.0 | 11.0 | 35.0 |
Sintaxe CSS
writing-mode: horizontal-tb|vertical-rl|vertical-lr;
Valores de propriedade
Value | Description |
---|---|
horizontal-tb | Let the content flow horizontally from left to right, vertically from top to bottom |
vertical-rl | Let the content flow vertically from top to bottom, horizontally from right to left |
vertical-lr | Let the content flow vertically from top to bottom, horizontally from left to right |
Páginas relacionadas
Tutorial CSS: Efeitos de texto CSS