I am trying to make a table that when mouse hover on the row the first thead row column will change background. I know it can be done using jQuery, I just want to know if I can use CSS only.
Visit http://jsfiddle.net/G9G65/1/
<table>
<thead><tr><th></th><th>Title 1</th><th>Title 2</th></tr></thead>
<tbody>
<tr><th>List 1</th><td>Data 1</td><td>Data 2</td></tr>
<tr><th>List 2</th><td>Data 1</td><td>Data 2</td></tr>
<tr><th>List 3</th><td>Data 1</td><td>Data 2</td></tr>
</tbody>
</table>
<style>
table tbody tr:hover {background: yellow;}
table tbody tr:hover thead tr th {background: red;}
</style>