text-indent

Sets the amount of empty space that appears before the first line of text in a block. Negative values can be used to create 'hanging' indents.

p {
  /* Indents the first line of every paragraph by 20 pixels */
  text-indent: 20px;
}
Initial value
0
Inherited
Yes
Applies to
blockContainers
Animation type
lpc

Values

hangingeach-line
Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

1+
1+
1+
12+
ESC