XML technologies / CSS / Advanced websites with CSS / CSS property reference / ruby-align
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Ruby text is used in Japan and China to display pronunciation aids or other explanatory information in small type above the main text. It is part of XHTML 1.1 and is described in detail in the W3C’s “Ruby Annotation Recommendation”.
The property ruby-align specifies how ruby text is aligned.
Inherited: no
See also: ruby-overhang, ruby-position
Values
The property is declared with the following constants:
autocenterdistribute-letterdistribute-spaceleftline-edgeright
The exact meanings of these constants are explained in detail on the CSS3 Ruby module draft page.
Default value: auto
Compatibility
CSS version: not yet supported by any CSS specification
Works only in Internet Explorer for Windows from version 5. Apply the property to the ruby element containing the relevant ruby text (rt).
Corresponding functionality is planned for CSS3. The drafts indicate that the final property will have the name described here.
Example
The following rule centres the ruby text above the main text:
ruby {
ruby-align: center;
}
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