files/en-us/web/css/reference/properties/ruby-align/index.md
The ruby-align CSS property defines the distribution of the different ruby elements over the base.
/* Keyword values */
ruby-align: start;
ruby-align: center;
ruby-align: space-between;
ruby-align: space-around;
/* Global values */
ruby-align: inherit;
ruby-align: initial;
ruby-align: revert;
ruby-align: revert-layer;
ruby-align: unset;
start
center
space-between
space-around
{{cssinfo}}
{{csssyntax}}
<ruby>
<rb>This is a long text to check</rb>
<rp>(</rp><rt>short ruby</rt><rp>)</rp>
</ruby>
ruby {
ruby-align: start;
}
{{EmbedLiveSample("Ruby_aligned_at_the_start_of_the_base_text", 180, 40)}}
<ruby>
<rb>This is a long text to check</rb>
<rp>(</rp><rt>short ruby</rt><rp>)</rp>
</ruby>
ruby {
ruby-align: center;
}
{{EmbedLiveSample("Ruby_aligned_at_the_center_of_the_base_text", 180, 40)}}
<ruby>
<rb>This is a long text to check</rb>
<rp>(</rp><rt>short ruby</rt><rp>)</rp>
</ruby>
ruby {
ruby-align: space-between;
}
{{EmbedLiveSample("Extra_space_distributed_between_ruby_elements", 180, 40)}}
<ruby>
<rb>This is a long text to check</rb>
<rp>(</rp><rt>short ruby</rt><rp>)</rp>
</ruby>
ruby {
ruby-align: space-around;
}
{{EmbedLiveSample("Extra_space_distributed_between_and_around_ruby_elements", 180, 40)}}
{{Specifications}}
{{Compat}}