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: 
above
Default. The Ruby text (rt) is located above the base content.
inline
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:
<head>
    <style>
        ruby.example {
            background-color: #EAE9E6;
        }
        rt.example {
            font-size: 12px;
            color: red;
        }
    </style>
</head>
<body>
    <ruby class="example" style="ruby-position: inline;">
        Inline.
        <rt class="example">Ruby text.</rt>
    </ruby>

    <br /><br />

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

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content