CSS ruby-position Property
Example
ruby {
ruby-position: over;
}
Meaning:
The ruby-position CSS property defines the position of a ruby element relatives to its base element.
It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character).
Default value: | alternate |
Inherited: | Yes |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
ruby-position: over|under|alternate|inter-character|initial|inherit|revert|revert-layer|unset;
Browser Support
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
over | Is a keyword indicating that the ruby has to be placed over the main text for horizontal scripts and right to it for vertical scripts. |
under | Is a keyword indicating that the ruby has to be placed under the main text for horizontal scripts and left to it for vertical scripts. |
inter-character | Is a keyword indicating that the ruby has to be placed between the different characters. |
alternate | Is a keyword indicating that the ruby alternates between over and under, when there are multiple levels of annotation. |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
ruby-position: alternate;
}