You are here: Re: how to align text in a <td>? « HTML « IT news, forums, messages
Re: how to align text in a <td>?

Posted by John Salerno on 06/01/06 19:15

David Dorward wrote:
> John Salerno wrote:
>
>> Ridiculously simple, but I can't figure it out. How do you make the text
>> in <td> elements align to the right of the table cell?
>
> Same as any other element, with the CSS text-align property.
>

Shucks, I was looking in the wrong place, I guess. :)

Thanks for the response!

Just a quick followup: Is it good practice to make a separate class just
to accomplish this alignment, if you don't want all <td>s to be
right-aligned? I did class="textlabel" and then a td.textlabel property.
It doesn't seem very elegant though, for some reason.

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация