Paragraph indentation is very practical, with the P tag can play an unexpected effect. The paragraph indent definition in CSS is implemented by text-indent, below its parameters and usage:
Syntax: Text-indent:〈 value
Allowable value: Length or Percentage
Initial value: 0
The text indent attribute can be applied to block-level elements (P,H1, etc.). or user-defined where the first line of the paragraph takes effect, the value must be an integer or a percentage. If the percentage is the CSS will automatically find the ancestor element width set value, the specific code example:
The P {text-indent:20px} means that the paragraph indents 20 pixel values, about the width of two characters empty.
In this way, the body area of the page with
Label, you can indent backwards 20 pixels, so that the entire article layout more standardized. If you don't use it, you can also define it in places where you need to indent, such as a tag:
The CSS control paragraph indentation is very practical, just define once, increase the readability of the article, can improve the browsing experience of the page.