In CSS, we can specify this style against the immediate child rows of a table:
table > tr {
background: blue;
}
That will not work if we have a <tbody> tag around the <tr> tags.
Is there a way to cover both cases without having to do this:
table > tr, table > tbody > tr {
background: blue;
}
We cannot do this also as it will impact grandchildren rows down the tree:
table tr {
background: blue;
}