1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
4 <TITLE>CSS1 Test Suite:
5.4.6 text-align
</TITLE>
5 <META http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <META http-equiv=
"Content-Style-Type" content=
"text/css">
8 <LINK rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"../resources/base.css">
9 <STYLE type=
"text/css">
10 .one {text-align: left;}
11 .two {text-align: right;}
12 .three {text-align: center;}
13 .four {text-align: justify;}
18 <BODY><P>The style declarations which apply to the text below are:
</P>
19 <PRE>.one {text-align: left;}
20 .two {text-align: right;}
21 .three {text-align: center;}
22 .four {text-align: justify;}
27 This sentence should be left-justified.
30 This sentence should be right-justified.
33 This sentence should be centered.
36 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.
40 <TABLE border
cellspacing=
"0" cellpadding=
"3" class=
"tabletest">
42 <TD colspan=
"2" bgcolor=
"silver"><STRONG>TABLE Testing Section
</STRONG></TD>
45 <TD bgcolor=
"silver"> </TD>
47 This sentence should be left-justified.
50 This sentence should be right-justified.
53 This sentence should be centered.
56 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.
58 </TD></TR></TABLE></BODY>