CSS text-indent property

Usage

Indents the first line of text within an element.

Values

  • [length] - indents the text by a fixed length
  • [percentage] - indents text by a percentage

Example

Code:

p {
  text-indent: 20px;
}