ruby-overhang Attribute | ruby-overhang Property

MS Office DHTML, HTML & CSS

ruby-overhang Attribute | rubyOverhang Property


Sets or retrieves the position of the ruby text specified by the RT object.

Syntax

HTML{ ruby-overhang: sRubyOverhang }
Scriptingobject.style.rubyOverhang [ = sRubyOverhang ]

Possible Values

sRubyOverhang String that specifies one of the following values:
autoRuby text overhangs any other text adjacent to the base text.
whitespaceRuby text overhangs only white-space characters.
noneRuby text overhangs only text adjacent to its base.

The property is read/write with a default value of auto; the proposed cascading style sheets (CSS) extension attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic propertiesInternet Link.

Remarks

The rubyOverhang property specifies the overhang of the ruby text defined by the RT object, and is set on the RUBY object.

Example

This example uses the ruby-overhang attribute and the rubyOverhang property to set the overhang of the ruby text. It uses an inline style sheet to set the ruby-overhang attribute to none.

Sample Code

<RUBY ID=oRuby STYLE = "ruby-overhang: none">
Ruby base.
<RT>Ruby text.
</RUBY>
<INPUT
TYPE=button VALUE="Whitespace"
onclick="oRuby.style.rubyOverhang='whitespace';"
>

This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
RUBY

See Also

rubyAlign, rubyPosition

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.