I am trying to create a hover effect for my links where they raise up when hovered, but I don't want the other links in the navigation bar to be affected. However, whenever I hover over one link, the others move downward as well. Can anyone help me solve this issue?
Here is the link to my codepen: http://codepen.io/anon/pen/gbxbJQ
#nav1 {
margin-left: auto;
margin-right: auto;
margin-top: 150px;
list-style: none;
}
tr > td {
font-size: 24pt;
padding-left: 50px;
}
a:link {
color: black;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
a:hover {
display: block;
padding-bottom: 70px;
}
<div>
<table id="nav1">
<tr>
<td><a href="#">C</a></td>
<td><a href="#">D</a></td>
<td><a href="#">E</a></td>
<td><a href="#">F</a></td>
<td><a href="#">G</a></td>
<td><a href="#">A</a></td>
<td><a href="#">B</a></td>
</tr>
</table>
</div>