By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

Column format in HTML

P: 11
hi all,
I am working on a table in HTML, where i have three columns and I want to set the text color for the first column as 'Red' and it should be aligned towards 'Right' side of the cell.

I have created a CSS tag for this, but the problem is that in every cell of that column I have to use the keyword Class="". eg...<td class="cellformat"> </td>.... Is there any way by which i can give it at one place and it applies to all the cells in that column.


Regards,

Royal
Jan 4 '08 #1
Share this Question
Share on Google+
2 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
hi all,
I am working on a table in HTML, where i have three columns and I want to set the text color for the first column as 'Red' and it should be aligned towards 'Right' side of the cell.

I have created a CSS tag for this, but the problem is that in every cell of that column I have to use the keyword Class="". eg...<td class="cellformat"> </td>.... Is there any way by which i can give it at one place and it applies to all the cells in that column.


Regards,

Royal
Not that I know of. You need to specify the class for each cell.

Regards,

Jeff
Jan 4 '08 #2

shane3341436
P: 63
hi all,
I am working on a table in HTML, where i have three columns and I want to set the text color for the first column as 'Red' and it should be aligned towards 'Right' side of the cell.

I have created a CSS tag for this, but the problem is that in every cell of that column I have to use the keyword Class="". eg...<td class="cellformat"> </td>.... Is there any way by which i can give it at one place and it applies to all the cells in that column.


Regards,

Royal
You can cascade the tables. I mean one table in each td. or use span tag for each td
Jan 4 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.