The use of CSS ruby-align properties

Source: Internet
Author: User
Grammar:

Ruby-align:auto | Left | Center | Right | Distribute-letter | Distribute-space | Line-edge

Parameters:
Auto: The alignment is determined by the browser. For Ideographic (East Asian text), align with the distribute-space value. Align with center values for Latin text
Left: aligned to the base width
Center: Center alignment based on base width. If the base width is less than the width of the ruby text, center the base width in the width of the ruby text
Right: Align to the base width
Distribute-letter: If ruby text is wider than the base width, ruby text is evenly distributed across the base width. If ruby text is wider than or equal to the base width, align the center
Distribute-space: If ruby text is wider than the base width, ruby text is evenly distributed across the base width. In ruby text, the last character after the first character is preceded by a blank area of half a word. If ruby text is wider than or equal to the base width, align the center
Line-edge: If ruby text is not adjacent to the edge of the row, it is centered. Otherwise, the Ruby text line is above the base text edge

Description
Sets or retrieves the alignment position of the annotation text or pronunciation guide (reference ruby object) specified by the Rt object.
See my other books for Ruby objects and RT objects.
The corresponding script attribute is rubyalign. Please refer to the other bibliography I have written.

Example:

Ruby {ruby-align:right;}

Specific examples:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 

Example diagram

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.