"Text-align" CSS3 new text Justify

Source: Internet
Author: User
Text-align parameter values and descriptions:

Left: Content is aligned to the right.
Center: Content Center-aligned.
Right: the content is justified.
Justify: content is justified, but is not processed for forced breaks (the line that is interrupted) and the last line (including only one line of text, because it is both the first and last line). (CSS3)
Start: Content snaps to the start boundary. (CSS3)
End: Content aligns to the end boundary. (CSS3)
Match-parent: This value is consistent with inherit, except that the start or end keyword inherited by this value is calculated for the parent's < ' direction ' > value, and the computed value can be left and right. (CSS3)
Justify-all: The effect is equivalent to justify, but it also aligns the last line with both ends. (CSS3)

Syntax Extensions:

One thing to note here is to set or retrieve the horizontal alignment of the content in the object.

1, block-level elements of the text is some stacked wireframe

2, most of the browser to make < ' text-align ' > Justify at both ends of the effective, need to insert a blank between the characters, such as space;

3. The last line of text within the block (including the case where there is only one line in the block, which is both the first and last line) and the row that is forced to break, justify using < ' text-align-last ' >;

4, IE browser, if < ' text-align-last ' > to be effective, must first define < ' text-align ' > for justify;

"Text-align" CSS3 new text Justify

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.