CSS writing modes
The CSS writing modes module defines support for various international writing modes and their combinations, including left-to-right and right-to-left text ordering as well as horizontal and vertical orientations.
The **CSS writing modes** module defines support for various international writing modes and their combinations, including left-to-right and right-to-left text ordering as well as horizontal and vertical orientations.
A _writing mode_ in CSS is determined by the writing-mode, direction, and text-orientation properties defined in this module. It is defined primarily in terms of its inline base direction and block flow direction.
Some horizontal languages are left-to-right, including Latin and Indic scripts. Other horizontal languages are written right-to-left, including Hebrew and Arabic scripts. Sometimes text needs to be bidirectional, such as when mixing left-to-right and right-to-left scripts. Some languages can be written with a vertical orientation, for example, Chinese, Japanese, and Korean (CJK) scripts.
The CSS writing modes module addresses the orientations of all writing modes. Other modules, such as the [CSS ruby layout](/docs/Web/CSS) module, provide rendering models and formatting controls related to the display text annotations.
## Reference
### Properties
- direction
- glyph-orientation-vertical
- text-combine-upright
- text-orientation
- unicode-bidi
- writing-mode
### Glossary and terms
- Baseline
- Internationalization
- Localization
- Leading
## Guides
- [Creating vertical form controls](/docs/Web/CSS/Guides/Writing_modes/Vertical_controls)
- : The article explains how to use the CSS writing-mode and direction properties to create and configure vertical form controls.
- [Introduction to writing mode systems](/docs/Web/CSS/Guides/Writing_modes/Writing_mode_systems)
- : A brief overview of writing mode systems and their directionalities.
## Related concepts
[CSS text](/docs/Web/CSS/Guides/Text) module
- hanging-punctuation
- hyphens
- letter-spacing
- line-break
- overflow-wrap
- text-align
- text-align-last
- text-indent
- text-justify
- word-break
- word-spacing
[CSS inline layout](/docs/Web/CSS/Guides/Inline_layout) module
- alignment-baseline
- dominant-baseline
- line-height
- text-box-edge
- text-box-trim
- text-box shorthand
- text-edge
[CSS logical properties and values](/docs/Web/CSS/Guides/Logical_properties_and_values) module
- Flow relative values
- Inset properties
- Logical properties
- Physical properties
[CSS display](/docs/Web/CSS/Guides/Display) module
- display
- <display-internal>
- [Visual formatting model](/docs/Web/CSS/Guides/Display/Visual_formatting_model)
[CSS generated content](/docs/Web/CSS/Guides/Generated_content)
- quotes
[SVG](/docs/Web/SVG)
- glyph-orientation-horizontal
- glyph-orientation-vertical
- writing-mode
[HTML](/docs/Web/HTML)
- bdo
- blockquote
- q
- ruby
- sub
- sup
- [`dir`](/docs/Web/HTML/Reference/Global_attributes/dir) attribute
- [`lang`](/docs/Web/HTML/Reference/Global_attributes/lang) attribute
[JavaScript](/docs/Web/JavaScript)
- [Internationalization guide](/docs/Web/JavaScript/Guide/Internationalization)
- [`Intl`](/docs/Web/JavaScript/Reference/Global_Objects/Intl) object
## Specifications
## See also
- [CSS fonts](/docs/Web/CSS/Guides/Fonts) module
- [CSS ruby layout](/docs/Web/CSS/Guides/Ruby_layout) module
- [CSS text decoration](/docs/Web/CSS/Guides/Text_decoration) module
- [CSS counter styles](/docs/Web/CSS/Guides/Counter_styles) module
- [CSS lists](/docs/Web/CSS/Guides/Lists) module
- [CSS containment](/docs/Web/CSS/Guides/Containment) module: contain-intrinsic-block-size and contain-intrinsic-inline-size
- [CSS overflow](/docs/Web/CSS/Guides/Overflow) module: overflow-block and overflow-inline
- [CSS overscroll behavior](/docs/Web/CSS/Guides/Overscroll_behavior) module: overscroll-behavior-block and overscroll-behavior-inline
Cite this
"CSS writing modes". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Writing_modes JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy