Sets or retrieves the position of the ruby text specified by the RT object.
Syntax
HTML { ruby-position: sRubyPlacement } Scripting object.style.rubyPosition [ = sRubyPlacement ]
Possible Values
sRubyPlacement String that specifies one of the following values:
above Ruby text is positioned above the base text. inline Ruby 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';" >
Applies To
RUBY
See Also