Struggling to align inline list elements vertically within a div, but unable to figure out why it's not working. Here is the CSS I have included:
.nav li{
display: inline;
display: table-cell;
vertical-align: middle;
}
.nav ul {
vertical-align: middle;
display: table-cell;
margin: 0% 6% 0% 0%;
}
Any help would be greatly appreciated.
https://jsfiddle.net/y1paacbh/
It seems like the issue may not be clear due to how jsfiddle is displaying it. Here is an image from my browser: https://i.sstatic.net/WtCH7.png