I have a logo and a menu in two separate divs side by side.
The logo is on the left and the menu is on the right.
I am trying to vertically align the menu in the right div with the logo in the left div.
Here is the code snippet:
<div id="header">
<div class="logo">
image.jpg
</div>
<div class="navigation">
link 1 | link 2 | link 3
</div>
</div>
And here is the CSS code:
#header{
padding: 3% 0 2% 0;
width: 100%;
display:table;
}
.logo{
display:inline-block;
max-width:19%;
text-align:left;
}
.navigation{
display:inline-block;
text-align:right;
width:81%;
}