Logo in the middle

by Kevin Pliester

HTML

<header class="clearfix">
  <div id="menu-left">
    <a href="#">Test</a>
    <a href="#">Test</a>
    <a href="#">Test</a>  
  </div>
  <div id="logo">
    <span></span>
  </div>
  <div id="menu-right">
    <a href="#">Test</a>
    <a href="#">Test</a>
    <a href="#">Test</a>
  </div>
</header>

<aside id="sidebar">
  <ul>
    <li><a href="#">Test</a></li>
    <li><a href="#">Test</a></li>
    <li><a href="#">Test</a></li>
    <li><a href="#">Test</a></li>
    <li><a href="#">Test</a></li>
    <li><a href="#">Test</a></li>
  </ul>
</aside>

CSS

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  height: 50px;
}

#menu-left {
  float: left;
  display: inline;
}

#menu-right {
  float: right;
  display: inline;
}

#logo {
  margin: 0 auto;
  display: inline-block;
  width: 150px;
  text-align: center;
  position: absolute;
  left: 50%;
}

#logo span {
  width: 150px;
  height: 50px;
  background: #eee;
  display: block;
  margin: 0 auto;
  position: relative;
  left: -50%;
}

#sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  background: #fff;
  border-right: 1px solid #eee;
  width: 260px;
  height: 100%;
}