I am trying to add a bottom box shadow for the table headers, but for some reason, the shadow appears on the sides as well. The below is the code that I am trying with.
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td,
#customers th {
padding: 8px;
}
#customers th {
box-shadow: 0 1px 2px 0px grey;
}
<table id="customers">
<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>Berglunds snabbköp</td>
<td>Christina Berglund</td>
<td>Sweden</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
What I am looking for is a box shadow with blur:2px, spread:0px, y-offset:1px and x-offset:0px