# text-indent attribute

Type: | length, percentage (with respect to the width of the block)
Inherited: | yes
Used By: | Text Blocks
See: | padding-left

This attribute controls the indentation of the first line. It can be positive, to indent the line to the right, or negative, to indent the line to the left. No allowance is made for the line overlapping it's neighbours. Usually this is done in combination with the padding-left attribute, to cause the first line to appear unmoved and the rest of the lines to be indented.

Indent the first line of the paragraph 1 inch to the right

    <p text-indent="1in">
    The first line of this paragraph is indented by one inch
    </p>

Indent all but the first line of the paragraph 1 inch to the right.

    <p padding-left="1in" text-indent="-1in">
    The remaining lines of this paragraph are indented by one inch
    to the right </p>