ScanSkill

text-indent

The text-indent property defines the indentation of the first line of a text block. An indentation is a space at the beginning of the first line of the text block.

Syntax

text-indent: value;

Example

 .div-1 {
            text-indent: 100px;
            border: 1px solid red;
        }

        .div-2 {
            text-indent: 5%;
            border: 1px solid red;
        }
text-indent

Property Values

value: sets the given value as the length of indentation. (Default value is 0)