...

View Full Version : Table Data cell with some text left- and some text right-aligned



richpasco
11-04-2010, 06:14 PM
Is it possible to have some text in a table data cell left-aligned while other text on the same line is right-aligned?

I tried this but it didn't work:


<TD><span style="text-align:left">California</span><span style="text-align:right">CA</span></TD>

Is there a way that does work?

- Rich

DrDOS
11-04-2010, 06:33 PM
Use float instead of text align. It will work.

richpasco
11-04-2010, 06:54 PM
Use float instead of text align. It will work.
Indeed, it does! Thank you very much!


<span style="float:right">CA</span>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum