Hello. I have a question about applying css to table cells. How can I specify a style for an individual cell in this table in a .css. Keep in mind I can't add a new class, or id to anywhere else in the table. Here's the table:
My guess the css would look something like this:
Am I close to being right? Thank you very much for your help!
Code:
<table class=MyTable>
<tr>
<td>I want my width 10%</td>
<td>I want my width 50%</td>
<td>I want my width 40%</td>
</tr>
</table>
My guess the css would look something like this:
Code:
.MyTable td { width: 10%; }
.MyTable td td { width: 50%; }
.MyTable td td td { width: 40%; }
Am I close to being right? Thank you very much for your help!