text-indent

Indent the first line of an element. This is most useful for indentation on paragraphs.

Value Description
size px - size in terms of pixels
em - size in terms of the current font size
in - size in terms of inches
cm - size in terms of centimeters
percentage The width of this element will be a percentage of the element it is inside of.

Code:

p { text-indent: 20px; }
h5 { text-indent: 30%; }

Display:

This is a paragraph that uses a text indentation with the value of 20px. This is the recommended usage of text indentation.

This is a header that uses a text indentation of 30%. Tizag does not recommend indenting your text with percentages.