Indentation

First-line indents are another typesetting property that CSS allows for the manipulation of. This property is controlled via text-indent: .

This property controls how much the first line of a paragraph is indented.

CSS
* {
  text-indent: 0;
}

As with many text properties, this once can be passed absolute values with pixels (px) or points (pt). It can also be passed relative values, such as ems.

text-indent: accepts these term values:

  • normal (default, no extra spacing, 0)
  • pixels (px)
  • points (pt)
  • percent (%)
  • ems (em)
  • …most other size terms, including negative values