how do I set the first "TD" within each "headerRow" to bold using CSS?
I'm attaching "{font-weight:bold;}" and have tried to access it by:
.headerRow > td:first-child
and
#container.table.headerRow > td:first-child
and
tr.headerRow:first-child
I know I can just wrap it in <strong></strong> but I'd rather use CSS, as there may be other styles that need to be attached to it...
Thanks....
TIP: trying googling the answer before posting, you'll find that more times than not someone else somewhere has had the same request and posted an answer online.
----
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javascript enabled browsers
I'm attaching "{font-weight:bold;}" and have tried to access it by:
.headerRow > td:first-child
and
#container.table.headerRow > td:first-child
and
tr.headerRow:first-child
I know I can just wrap it in <strong></strong> but I'd rather use CSS, as there may be other styles that need to be attached to it...
Code:
<div id="container">
<table>
<tr>
<td colspan="2">Lorem Ipsum</td>
</tr>
<tr class="headerRow">
<td>Lorem</td> [b]<- this one[/b]
<td>Donec</td>
</tr>
<tr class="headerRow">
<td>Nulla</td> [b]<- this one[/b]
<td>Dolor</td>
</tr>
<tr>
<td>Select</td> [b]<- [u]not[/u] this one[/b]
<td>
<select>
<option value="a">a</option>
<option value="b">b</option>
</select>
</td>
</tr>
</table>
</div>
Thanks....
TIP: trying googling the answer before posting, you'll find that more times than not someone else somewhere has had the same request and posted an answer online.
----
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javascript enabled browsers