Monday, September 29, 2008

Use text-algin:right for table

Try the following code to align inner table (print) to right.

<TABLE width="100%" cellpadding="0" cellspacing="0" border="1">
<TD style="text-align:right">

In IE, that is straight forward -- I got "Print" to the right side. But, not Firefox.
According to "The text-align property affects, by CSS specifications, the alignment of text lines inside the element. The inner table is a block element, so it is not affected.", that is make sense to me. However, it just give my style sheet more complication.

No comments: