twilitegxa Posted August 17, 2009 Share Posted August 17, 2009 How do I right align a column without setting a class and adding the class to every td? I think someone has told me how to do this before, but I can't remember how. The column is all whole numbers with no decimals. Is there a way to do this? Link to comment https://forums.phpfreaks.com/topic/170593-solved-right-align-column/ Share on other sites More sharing options...
satya123 Posted August 17, 2009 Share Posted August 17, 2009 You can set column property as td {text-align:right} in CSS. It will align right all the text right by default. Link to comment https://forums.phpfreaks.com/topic/170593-solved-right-align-column/#findComment-899876 Share on other sites More sharing options...
haku Posted August 17, 2009 Share Posted August 17, 2009 I don't think you can do this without adding a class to each of the tds in the column. Link to comment https://forums.phpfreaks.com/topic/170593-solved-right-align-column/#findComment-900015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.