CSS1 Test Suite: 5.4.6 text-align


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 1 September 1998

The style declarations which apply to the text below are:

.one {text-align: left;}
.two {text-align: right;}
.three {text-align: center;}
.four {text-align: justify;}


This sentence should be left-justified.

This sentence should be right-justified.

This sentence should be centered.

This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western languages.

This sentence should be left-justified.

This sentence should be right-justified.

This sentence should be centered.

This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western languages.


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