How to access the first row of a CSS table with a different class name tr
.
<div id="right"> <table> <tbody> <tr class="head"> <td >Date</td><td>Info</td><td>More</td> </tr> <tr><td>...</td></tr></table> </div>
How to make this css
#right table tr:first-child td:first-child { border-top-left-radius: 10px; } #right table tr:first-child td:last-child { border-top-right-radius: 10px; }
applies only to .head
source share