How does CSS indent the first character of a paragraph with two characters,

Source: Internet
Author: User

How does CSS indent the first character of a paragraph with two characters,

How does CSS indent the first character of a paragraph:
The first character of a paragraph indent is an attempt to organize the language. Of course, space can also be used to achieve this effect, but it is a bit crude. The following describes how to use the text-indent attribute to achieve this effect, for more information about the text-indent attributes, see the text-indent attributes section of CSS.
The code example is as follows:

<! DOCTYPE html>  

The above Code meets our requirements. We can leave two Chinese characters blank at the beginning of the line. Note that the unit of the text-indent attribute value is em, which is not described here, for details, see the difference between px and em in CSS.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 9630.

For more information, see: http://www.softwhy.com/divcss/

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.