The implementation method of the CSS forced line alignment

Source: Internet
Author: User

The example of this article describes the implementation of the CSS forced wrap alignment. Share to everyone for your reference. The specific analysis is as follows:

Using CSS to control Chinese and English characters Force wrap and justify, effectively avoid the content of div beyond the scope and change the layout of the page, the function of forced line wrapping is very practical.

The code is as follows:
<title>css Forced line Wrap </title>
<body>
English to align:
<div style= "Font-size:12px;width:300;text-align:justify;text-justify:newspaper" >If you are Male, between Years old, ethnically Chinese and effectively bilingual (English/mandarin) with a minimum university degree, this is yo ur opportunity of a lifetime. You are need to have confidence and charisma in front of the camera and possess good scriptwriting ability in 中文版. Some Media Experience Preferred</div>
Chinese alignment:
<div style= "font-size:12px;width:300;text-align:justify; Text-justify:inter-ideograph ">
A gray style super practical beautiful Web Calendar components, in the assurance of the appearance of the basis, the plug-in more focus on the function of the experience, the operation is very comfortable, want to use the Web date selector Friends, this paragraph is a good choice for you. </div>
</body>

I hope this article will help you with the DIV+CSS web design.

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.