--- title: writing-mode slug: Web/CSS/writing-mode tags: - CSS - Disposición - Propiedad CSS - Referencia translation_of: Web/CSS/writing-mode ---
La propiedad writing-mode define si los renglones de texto se disponen horizontal o verticalmente y la dirección en que avanzan los bloques.
La propiedad especifica la dirección de flujo de bloques, que es la dirección en que se apilan los contenedores a nivel de bloque y la dirección en que el contenido a nivel de línea fluye dentro de un contenedor de bloque. Por ende, la propiedad writing-mode también determina la ordenación del contenido a nivel de bloque.
{{cssinfo}}
/* Valores de la palabra clave */ writing-mode: horizontal-tb; writing-mode: vertical-rl; writing-mode: vertical-lr; /* Valores globales */ writing-mode: inherit; writing-mode: initial; writing-mode: unset;
horizontal-tbvertical-rlvertical-lrsideways-rl{{experimental_inline}}sideways-lr{{experimental_inline}}lr {{deprecated_inline}}horizontal-tb.lr-tb {{deprecated_inline}}horizontal-tb.rl {{deprecated_inline}}horizontal-tb.tb {{deprecated_inline}}vertical-rl.tb-rl {{deprecated_inline}}vertical-rl.<table>
<tr>
<th>value</th>
<th>Sistema de escritura vertical</th>
<th>Sistema de escritura horizontal</th>
<th>Escritura mixta</th>
</tr>
<tr>
<td>horizontal-tb</td>
<td class="exampleText1">我家没有电脑。</td>
<td class="exampleText1">Texto de ejemplo</td>
<td class="exampleText1">1994年に至っては</td>
</tr>
<tr>
<td>vertical-lr</td>
<td class="exampleText2">我家没有电脑。</td>
<td class="exampleText2">Texto de ejemplo</td>
<td class="exampleText2">1994年に至っては</td>
</tr>
<tr>
<td>vertical-rl</td>
<td class="exampleText3">我家没有电脑。</td>
<td class="exampleText3">Texto de ejemplo</td>
<td class="exampleText3">1994年に至っては</td>
</tr>
<tr>
<td>sideways-lr</td>
<td class="exampleText4">我家没有电脑。</td>
<td class="exampleText4">Texto de ejemplo</td>
<td class="exampleText4">1994年に至っては</td>
</tr>
<tr>
<td>sideways-rl</td>
<td class="exampleText5">我家没有电脑。</td>
<td class="exampleText5">Texto de ejemplo</td>
<td class="exampleText5">1994年に至っては</td>
</tr>
table { border-collapse:collapse; }
td, th {border: 1px black solid; padding: 3px; }
th {background-color: lightgray; }
.exampleText1 { width:75px; writing-mode: horizontal-tb; -webkit-writing-mode: horizontal-tb; -ms-writing-mode: horizontal-tb; }
.exampleText2 { height:75px; writing-mode: vertical-lr; -webkit-writing-mode: vertical-lr; -ms-writing-mode: vertical-lr; }
.exampleText3 { height:75px; writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl; -ms-writing-mode: vertical-rl; }
.exampleText4 { height:75px; writing-mode: sideways-lr; -webkit-writing-mode: sideways-lr; -ms-writing-mode: sideways-lr; }
.exampleText5 { height:75px; writing-mode: sideways-rl; -webkit-writing-mode: sideways-rl; -ms-writing-mode: sideways-rl; }
{{EmbedLiveSample("Example", 400, 430)}}

| Especificación | Estado | Comentario |
|---|---|---|
| {{SpecName("CSS3 Writing Modes", "#block-flow", "writing-mode")}} | {{Spec2("CSS3 Writing Modes")}} | Definición inicial |
writing-mode