I'm trying to achieve a simple style with the following code:
li, a {
display: inline-block;
}
li {
transition: top 0.3s;
}
li:hover {
position: relative; top: 3px;
}
This style is intended to make some icons in a menu sink down when hovered over. Oddly enough, it works perfectly in Chrome but not in IE or FF. Any ideas on what might be causing this discrepancy?