XML technologies / CSS / Advanced websites with CSS / CSS property reference / writing-mode
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property writing-mode is not included in the CSS specification and describes the writing direction in text elements: lines written left to right, progressing from top to bottom (usual for Latin-script languages such as German or English), or lines written top to bottom, progressing from right to left (usual for East Asian languages such as Chinese or Japanese).
Inherited: yes
See also: layout-flow
Values
lr-tb or tb-rl. Characters whose font does not provide the setting tb-rl are rotated 90 degrees clockwise.
Default value: lr-tb
Compatibility
CSS version: not part of the CSS specification
Works only in Internet Explorer for Windows from version 5.5.
Corresponding functionality is planned for CSS3, although the final property and value names will probably differ. Current information is available on the CSS Working Group website.
Example
The following rule sets writing-mode for body and its descendants to the East Asian method tb-rl:
body {
writing-mode: tb-rl;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg