text-indent

The text-indent property specifies the indentation of the first line of text in a block.

text-indent: <length> | <percentage> | inherit
Initial: 0
Applies To: block-level elements, table cells, and inline blocks
Inherited: yes
Percentages: refer to width of containing block
Media: visual

Values

Δ

text-indent: value;
 
Value: Description:
inherit Takes the same computed value as the property for the element's parent
length Fixed length identation
percentage Identation percentage calculated with respect to the width of the containing block

DOM

Δ

[window.]document.getElementById("element-id").style.textIndent = "text-indent";

Example | Values | length

Δ

Example | Values | percentage

Δ

Example | DOM

Δ

References

Δ