I am looking to enhance the spacing between columns in my table to achieve a layout similar to the reference image provided. Can you suggest any adjustments I can make to my code to achieve this look?
Reference table :
https://i.sstatic.net/xfqiR.png
Here is the current code for my table, feel free to provide suggestions on how to improve it further. Thank you.
<style>
.styled-table {
border-collapse: collapse;
margin: 25px 0;
font-size: 0.9em;
font-family: sans-serif;
min-width: 400px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
background-color: #6c6f7271;
color: #000000;
text-align: left;
}
.styled-table th,
.styled-table td {
padding: 12px 15px;
}
.styled-table tbody tr {
border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
background-color: #8410e393;
}
</style>
<div>
<table class="styled-table">
<thead>
<tr>
<th>Name</th>
<th>age</th>
<th>city</th>
<th>salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ashish</td>
<td>21</td>
<td>Mumbai</td>
<td>90000</td>
</tr>
<tr>
<td>Yadnesh</td>
<td>20</td>
<td>Mumbai</td>
<td>88000</td>
</tr>
<tr>
<td>Vinit</td>
<td>20</td>
<td>Mumbai</td>
<td>70000</td>
</tr>
<tr>
<td>Pushkar</td>
<td>21</td>
<td>Mumbai</td>
<td>84000</td>
</tr>
<tr>
<td>Pushkar</td>
<td>21</td>
<td>Mumbai</td>
<td>84000</td>
</tr>
<!-- Any additional data goes here... -->
</tbody>
</table>
</div>