| Syntax: | text-indent : value |
|---|---|
| Possible Values : | length | percentage |
| Initial Value : | 0 |
| Applies to: | Block-level elements |
| Inherited : | Yes |
The text-indent property can be applied to block-level elements (P, H2, etc.) to define the amount of indentation that the first line of the element should receive. The value must be a percentage; percentages refer to the parent element's width. A common use of text-indent would be to indent a paragraph:
Example:
P { text-indent: 5em }
see example in action