CSS1 Test Suite: 5.4.7 text-indent


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 11 May 1998

The style declarations which apply to the text below are:

.one {text-indent: 0.5in;}
.two {text-indent: 2cm;}
.three {text-indent: 20mm;}
.four {text-indent: 24pt;}
.five {text-indent: 2pc;}
.six {text-indent: 2em;}
.seven {text-indent: 2ex;}
.eight {text-indent: 50%;}
.nine {text-indent: 25px;}
blockquote {text-indent: 50%;}


The first line of this sentence should be indented half an inch.

The first line of this sentence should be indented two centimeters.

The first line of this sentence should be indented twenty millimeters.

The first line of this sentence should be indented twenty-four points.

The first line of this sentence should be indented two picas.

The first line of this sentence should be indented two em.

The first line of this sentence should be indented two ex.

The first line of this sentence should be indented halfway across the page, but the rest of it should be flush with the normal left margin of the page.

The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left margin of the page.

Only the first line of this sentence should be indented half an inch,
no matter where the lines might start, and
regardless of any other markup which may be present.

This blockquote element should have a text indent of 50% of that of the BODY element, since blockquote is a child of BODY element.

The first line of this sentence should be indented half an inch.

The first line of this sentence should be indented two centimeters.

The first line of this sentence should be indented twenty millimeters.

The first line of this sentence should be indented twenty-four points.

The first line of this sentence should be indented two picas.

The first line of this sentence should be indented two em.

The first line of this sentence should be indented two ex.

The first line of this sentence should be indented halfway across the page, but the rest of it should be flush with the normal left margin of the page.

The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left margin of the page.

Only the first line of this sentence should be indented half an inch,
no matter where the lines might start, and
regardless of any other markup which may be present.

This blockquote element should have a text indent of 50% of that of the BODY element, since blockquote is a child of BODY element.

[Previous] [Next] [Section] [Contents] [Specification]