To organize the menu
and category
, wrap them in a div and float that new div.
HTML
<div id="header">
<div class="verticalcenter relative">
<div id="logo">logo</div>
<div class="wrap" align="left">
<div id="menu">menu</div>
<div id="categories">categories</div>
</div>
</div>
</div>
CSS
#header{
background: white;
box-shadow: 0 0 15px rgb(0,0,0);
box-shadow: 0 0 15px rgba(0,0,0,0.3);
position: absolute;
z-index: 50;
width: 100%;
}
.verticalcenter{
width: 100%;
margin: 0 auto;
}
#logo{
width: 25%;
height: 150px;
box-shadow: 0 0 15px rgb(0,0,0);
box-shadow: 0 0 15px rgba(0,0,0,0.3);
display: inline-block;
zoom: 1;
vertical-align: top;
min-width: 220px;
}
#menu{
width: 75%;
display: inline-block;
zoom: 1;
vertical-align: top;
}
.wrap {
float:right;
width:75%;
}
NOTE: A width has been added to the wrapper div so it aligns next to your logo instead of on the far right side. Feel free to remove the width if you prefer it to behave differently.