How does the CSS Text-indent property implement the first line indent? Detailed

Source: Internet
Author: User
When we design the website HTML article page style, the article shows the effect is directly affects the entire station the esthetic degree as well as the entire station quality. As we all know, in the Word document, we need to clear the paragraph, the description clearly. Then the articles that we publish on the website are also best to show the paragraph clearly, such as the most common first line indentation. In this case, you can't leave a strong CSS style. Text-indent Property! This article will give you a detailed introduction about HTML CSS First line indentThe specific method.

The following is the simplest example of how the first line of CSS text is indented and how the text-indent property is used and related knowledge.

<! DOCTYPE html>

The above code in the browser access effects such as:

We can see that this HTML paragraph has the effect of first-line indentation. It is obvious here that the style attribute in CSS is working? is the Text-indent style property! So what does text-indent mean? In fact, it is obvious that this style attribute is to make the first line of text indentation effect, such as the first line of HTML indentation 2 characters, indentation 1 characters and so on, and here also reminds you, Text-indent style properties can have negative values, Negative values, the first line of the text paragraph will be indented to the left. Negative values are not used in the general case.

So through the above introduction, everyone on how to use CSS to set the first line of text paragraph indentation problem is not already mastered it? This article has certain reference value, hoped to have the need friend to be helpful!

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.