Menu Home

text-indent

osbo.com | CSS | Properties | text-indent

The text-indent CSS property specifies the indentation applied to lines of inline content in a block.

Syntax

CSS

text-indent: value;

JS

object.style.textIndent = "value";

Values

<'text-indent'> = [ <length-percentage> ] && hanging? && each-line?
<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

hanging

Inverts which lines are affected.

each-line

Indentation affects the first line of each block container and each line after a forced line break (but not lines after a soft wrap break).

Initial

0

Examples

length

percentage

hanging

each-line

JS

Internal

tab-size

External

World Wide Web Consortium (W3C)