CSS1 Test Suite: 5.4.7 text-indent


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

The style declarations which apply to the text below are:

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


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.

In the first half of the test page, this BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE.
TABLE Testing Section
 

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.

In the first half of the test page, this BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE.

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