Forum Moderators: not2easy
CPU - Details CPU
Motherboard - Details Motherboard
Is this possible and if so, how can I do this?
Thank you very much in advance,
Stefan
You can also use something like:
tr > td:first-child {
/* styles here */
} However, remember that browser support for the above selector is sketchy in older browsers, including IE6.
That can, however, be remedied using Dean Edwards' excellent IE7 [dean.edwards.name] JavaScript patch.
Last, but not least, you can always assign a class to the first cell of each row. Works great.
If I remember correctly, only the background and width are supported by older browsers with COL and COLGROUP? How would I do this?
I also just wanted to try the second method, but I can't really figure out how to apply it to my table (I'm probably doing something wrong in my code):
<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]><script src="ie7-standard-p.js" type="text/javascript"></script><![endif]-->
<style type="text/css">
tr > td:first-child {.bold {font-weight:bold;}}
</style>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="40%" valign="top" id="first-child"> </td>
<td width="40%" valign="top"> </td>
</tr>
</tbody>
</table>
I already tried assigning a class to the first cell (which I thought was the easiest method). however, my editor (TinyMCE) just strips the class when I click the button to add another row. So only the first TR has the right formatting.
I'm afraid it will do the same with your second suggestion.
<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]><script src="ie7-standard-p.js" type="text/javascript"></script><![endif]-->
<style type="text/css">
tr > td:first-child { font-weight: bold; }
</style>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="40%" valign="top">I am bold</td>
<td width="40%" valign="top">I am normal</td>
</tr>
<tr>
<td width="40%" valign="top">I am bold</td>
<td width="40%" valign="top">I am normal</td>
</tr>
</tbody>
</table>
Just remember that you need to have the IE7 scripts uploaded to your server as well.