Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to achieve a certan column (or row) in the table?

0 views
Skip to first unread message

Juli V.

unread,
Aug 30, 2004, 3:42:51 AM8/30/04
to
Hello!

Is it possible to specify stylesheet for a certan column (or row).
For example, I have a table with 4 columns and 2 rows.
<table id="MyTable">
<tr><td>1<td>2<td>3<td>4</tr>
<tr><td>5<td>6<td>7<td>8</tr>
</table>

browse:

1 | 2 | 3 | 4
5 | 6 | 7 | 8

and I want all third column to be red.

I read somewhere, that I can write in CSS something like this:

#MyTable .col3 {
color: red;
}

But it doesn't work!
Please, tell me if it's possible or not! And if "yes", so how can I do
this??

(theoretically, I need to set stylesheet for a row!)

Thanx!


0 new messages