| Syntax | selector {text-indent: value ;}
|
|---|---|
| Usage | The text-indent property is used to control the indentation of the first line of text within a block container. This property is specified by using a length, percentage, or keyword, according to the syntax shown above. Negative values are permitted but this may cause the text to overflow the block container if the negative value is too large. If a percentage value is used, the value will be a percentage of the block container's width. |
| Keywords |
|
| Applies To | Block containers |
| Inherited | Yes |
| Initial Value | 0 |
![]() ![]() The text-indent property is set using a length of 25 pixels. |