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.
Quick example
p {
/* Indents the first line of every paragraph by 20 pixels */
text-indent: 20px;
} Quick facts
Initial value
0Inherited
Yes
Applies to
block containers
Animation type
lpc
Values
hangingeach-line text-indent Browser Support
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+