XML technologies / CSS / Advanced websites with CSS / CSS property reference / ruby-overhang

(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-overhang specifies whether ruby text may extend beyond the main text.

Inherited: no

See also: ruby-align, ruby-position

Values

The property is declared with the following constants:

  • auto

  • none

  • whitespace

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 allows ruby text to extend only into adjacent whitespace:

ruby {
 ruby-overhang: whitespace;
}

  

 

 

 

back to top