1 out of 1 rated this helpful - Rate this topic

ruby-position property

Gets or sets a value that controls the position of the ruby text with respect to its base.

CSS3 Ruby Module, Section 4.1

Syntax

ruby-position: above | inline

Property values

A variable of type String that specifies or receives one of the following values:

above

Default. Ruby text is positioned above the base text.

inline

Ruby text is positioned inline with the base text.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

The ruby-position property specifies the position of the ruby text defined by the rt object, and is set on the ruby object.

Examples

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

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/rubyPosition.htm


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

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style
Reference
ruby-align
ruby-overhang

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.