I have a table where certain rows are highlighted. I want the first row of the highlighted rows to have a border applied to the top of it.
I'm trying the following, but it's not working.
.highlighted{
background-color: lightyellow;
}
table:first-child tr.highlighted td{
border-top: solid 1px gray;
}
Here is a fiddle.
The problem I'm having is that the border is added to every highlighted row, not just the first.
Is this possible with pure css?