HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

text-indent

Description

The text-indent property for CSS 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

1 · length

2 · percentage

3 · hanging

4 · each-line

5 · JS