You are here: Reference > CSS > properties > ruby-position

ruby-position property

Browser support:
Specifies the position of the Ruby text (rt).
JavaScript page for this property: rubyPosition. You can find other example(s) there.

Possible values:

 One of the following values: 
Default. The Ruby text (rt) is located above the base content.
The Ruby text (rt) is located inline with the base content.
Default: above.

Example HTML code 1:

This example illustrates the use of the ruby-position property:
        ruby.example {
            background-color: #EAE9E6;
        rt.example {
            font-size: 12px;
            color: red;
    <ruby class="example" style="ruby-position: inline;">
        <rt class="example">Ruby text.</rt>

    <br /><br />

    <ruby class="example" style="ruby-position: above;">
        <rt class="example">Ruby text.</rt>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content