Click to return to the DHTML, HTML     
ruby-overhang Attribute |...     RULES Attribute | rules P...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

ruby-position Attribute | rubyPosition Property


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

Syntax

HTML{ ruby-position: sRubyPlacement }
Scriptingobject.style.rubyPosition [ = sRubyPlacement ]

Possible Values

sRubyPlacement String that specifies one of the following values:
aboveRuby text is positioned above the base text.
inlineRuby text is positioned inline with the base text.

The property is read/write with a default value of above; 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 Properties.

Remarks

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

Example

This example uses the ruby-position attribute and the rubyPosition property to set the position of the ruby text. It uses an inline style sheet to set the ruby-position attribute to inline.

Sample Code

<RUBY ID=oRuby STYLE = "ruby-position: inline">
Ruby base.
<RT>Ruby text.
</RUBY>
<P>
<INPUT
TYPE=button VALUE="Above"
onclick="oRuby.style.rubyPosition='above';"
>

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:
RUBY

See Also

rubyAlign, rubyOverhang



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.