After implementing the code below:
HTML
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
</table>
CSS
table {
border-collapse: separate;
border-spacing: 0 1rem;
width: 100%;
}
The resulting output looked like this:
https://i.sstatic.net/dSISK.png
However, I actually wanted my output to resemble this:
https://i.sstatic.net/7R38h.png
I attempted adding margin to table rows but saw no difference.
Thank you! :)