I have a nav menu made using a table with links inside. On chrome and all other browsers, the td elements have no padding, and the inside links can have padding and fill up the whole td element. On Safari there is an added top and bottom padding that is throwing off the spacing of the inner links. How do I remove this extra padding in safari?
html-
<nav>
<div class="container">
<table>
<tr>
<td><a href="">Link 1</a></td>
<td><a href="">Link 2</a></td>
<td><a href="">Link 3</a></td>
<td><a href="">Link 4</a></td>
<td><a href="">Link 5</a></td>
<td><a href="">Link 6</a></td>
<td><a href="">Link 7</a></td>
<td><a href="">Link 8</a></td>
<td><a href="">Link 9</a></td>
</tr>
</table>
</div>
</nav>
css(scss) -
.container {
position: relative;
display: block;
margin: 0px auto;
padding: 0px 20px;
max-width: 1100px;
&:after {
content: "";
display: table;
clear: both;
}
}
nav {
background: $modBg;
border: 1px solid $border;
border-left: 0px;
border-right: 0px;
margin-bottom: 9px;
table {
width: 100%;
tr {
td {
text-align: center;
a {
padding: 15px;
display: inline-block;
width: 100%;
height: 100%;
}
}
}
}
}
and some images showing the difference-
Here's a jsfiddle replicating the problem- https://jsfiddle.net/davmex/m4ea9gLr/