I have a table with this form
<table class="myclass">
<thead>
<tr>
<th colspan="7">something</th>
<tr>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th>7</th>
</tr>
</thead>
<tbody>
etc...
I want to apply a css rule only to the th with something. That is the descedant of tr which in turn is the first descendant of thead which in turn is descendant of table with myclass I use this css selector
table.myclass thead > tr th{
background-color:red;
}
but is also applied in all the other th's in the thead (1, 2, 3, etc). Have i missunderstood the selector thing?
Any good tutorials about advanced selectors?
And a sample jsfiddle