ruby-overhang property
Gets or sets a value that indicates whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.
![]() |
Syntax
ruby-overhang: auto | whitespace | none
Property values
A variable of type String that specifies or receives one of the following values:
auto-
Default. Ruby text overhangs any other text adjacent to the base text.
whitespace-
Ruby text overhangs only white-space characters.
none-
Ruby text overhangs only text adjacent to its base.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS3 Ruby Module, Section 4.3
Remarks
The ruby-overhang property specifies the overhang of the ruby text defined by the rt object, and is set on the ruby object.
Examples
This example uses the ruby-overhang attribute and the ruby-overhang property to set the overhang of the ruby text. It uses an inline style sheet to set the ruby-overhang attribute to none.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/rubyoverhang.htm
<RUBY ID=oRuby STYLE = "ruby-overhang: none"> Ruby base. <RT>Ruby text. </RUBY> <INPUT TYPE=button VALUE="Whitespace" onclick="oRuby.style.rubyOverhang='whitespace';" >
See also
Send comments about this topic to Microsoft
Build date: 11/29/2012

