ruby-position Attribute | rubyPosition Property
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. RUBY
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.