I have incorporated a table into my project and here is the HTML snippet for reference:
th {
text-align: left;
}
td {
height: 20px;
font-size: 12px;
background-color: #000;
color: #fff;
margin-right: 20px;
border-top-left-radius: 10px;
}
<table>
<tr>
<td>Exams</td>
<td>Science</td>
<td>Mathematics</td>
<td>Biology</td>
</tr>
<tr>
<td>2000</td>
<td>95</td>
<td>64</td>
<td>33</td>
</tr>
</table>
I am looking to increase the spacing between the column elements in the table. Although I have applied margin-right
, it seems to not be affecting the output. Can someone provide guidance on how to achieve this?