I'm trying to customize the appearance of my table by changing the radius of the thead and tr elements. Although I am able to apply border-radius to the table itself, it doesn't seem to work for the thead and tr elements. Here is the CSS code snippet:
table{
width:100%;
border-radius:5px;
background:gray;
}
thead {
border-radius:5px;
text-align:left;
background:blue;
}
tr{
border-radius:5px;
}
th,td{
padding:5px;
}
Below is the corresponding HTML markup:
<table>
<thead>
<tr>
<th>No</th>
<th>Name</th>
<th>Country</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Andy</td>
<td>UK</td>
<td>40</td>
</tr>
</tbody>
</table>