Css+div page style and layout--Text style & paragraph (ii)

Source: Internet
Author: User

To undertake the previous article, the text of this article for you to continue to write paragraph of the relevant content. The main contents are as follows:


Then just a few simple lines of code can show a simple page effect. In fact, the CSS code itself is in the simplest language to control as many formats as possible.

1, the horizontal alignment method: Text-align

Here are three effects that are left-aligned, right-aligned, and center-aligned, respectively:


Code:

 

2, vertical alignment: Vertical-align


Code:

 

3. Pitch: letter-spacing


Code:

 


4. Drop Cap: float


Code:

 


This is like a habit of ours, in writing the article strictly pay attention to the form of the paragraph, like our own writing articles, blogs, etc., if it comes up is a whole piece of the big paragraph, I believe that no one likes to read, it is like to be read in one breath you write things. So using CSS can save you a lot of effort, let you easily achieve the wonderful effect.

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.