www.fgks.org   »   [go: up one dir, main page]

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[ sRubyPlacement = ] object.style.rubyPosition

Possible Values

sRubyPlacementString that specifies or receives one of the following values:
aboveDefault. Ruby text is positioned above the base text.
inlineRuby text is positioned inline with the base text.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of above. The Cascading Style Sheets (CSS) 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 About 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.

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

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

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 3 (CSS3) World Wide Web link.

Applies To

currentStyle, RUBY, runtimeStyle, style

See Also

rubyAlign, rubyOverhang


MSDN Library
Web Development
HTML and CSS
Cascading Style Sheets (CSS)
CSS Reference
Attributes
Font and Text
rubyPosition