Table Based Header Layout

Cause, srsly, tables ftw.

by bryandowning

HTML

<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<header>
    <a href="#">---</a>
    <section>
        
        <div class="left">Instance | Path > Sub Path</div>
            
        <div class="middle">Logos</div>
            
        <div class="right">Version | Avatar | Help</div>
        
    </section>
    
</header>

CSS

header {
    position: relative;
    height: 54px;
    padding-left: 50px;
    padding-right: 15px;
    background-color: #ccc;
    
}
a {
    position: absolute;
    top: 50%;
    left: 15px;
    margin-top: -10px;
    
    display: block;
    width: 20px;
    height: 18px;
    background-color: #666;
}
header > section {
    display: table;
    width: 100%;
    height: 100%;
}
header > section > div {
    display: table-cell;
    vertical-align: middle;
}

header > section > .left,
header > section > .right {
    width: 40%;
}
header > section > .right {
    text-align: right;
}
header > section > .middle {
    width: 20%;
    text-align: center;
}