HTML Dog
Skip to navigation

CSS Property: text-indent

Indentation at the start of the first line in a block of text.

Spacing-out text: text-indent, word-spacing, letter-spacing, and text-align.

Possible Values

ValueNoteExample
[length]1em
[percentage]Calculated as a percentage of the box’s width.10%
inherit
initial
unset

Example


p { text-indent: 2em; }

Browser support