text-indent

The text-indent CSS property sets the length of empty space (indentation) that is put before lines of text in a block.

Example

Initial value 0
Applies to block containers

Syntax

  
text-indent: 10%;
  

Values

Indentation is specified as an absolute . Negative values are allowed. See values for possible units.
Indentation is a of the containing block's width.
Indentation affects the first line of the block container as well as each line after a forced line break, but does not affect lines after a soft wrap break.
Inverts which lines are indented. All lines except the first line will be indented.

Browser support

text-indent112133.51
each-line
hanging

We use cookies to improve your experience. Learn more in our Privacy policy.

×