View Full Version : text align="justify"

10-05-2007, 12:27 PM
If I don't define align properties,
when I use <center> to center the table All texts centered in the table.
when I remove <center> All texts are ok (left).
It was my problem. So I use align properties, Now "justify" cannot work.

<td align="justify">[hhhhhhh hhhh - we hhhh (hh) whhhhh (2) whhh hhhhahhasis or (h) whhhhhh fghh ghgf hgf hggfh hgis ghfhfgh fhhfhgggg].<br />

In Opera and Mozilla - its working properly but in the IE 6 when I use align="justify" text are centered.

please help.

10-05-2007, 05:35 PM
<center> has traditionally been used to center page elements, but it should only actually apply to text.

What I would suggest you do is to use CSS instead:

table {
width: 500px;
margin: 0 auto;
text-align: justify;

If you give the table a firm width you can center it with margins, and the text-align will justify your text.