i am trying to make a kind of responsive header for my website. it should work in this way: fluid div - fixed and centered - fluid. All three cols are filled with content. The problem is that middle column is not always centered and fluid are not equal width.
jsfiddle: http://jsfiddle.net/6f87f/
<div class="header">
<div class="fluid-col">
1234
</div>
<div class="fixed-col">
<h1><a href="#" title="">Orfin Studio</a></h1>
</div>
<div class="fluid-col">
123
</div>
</div>
CSS
.header {
display: table;
width: 100%;
height:120px;
text-align:center;
}
.header > div {
display: table-cell;
vertical-align:middle;
}
.fixed-col {
width:200px;
color: white;
}
.fluid-col {
background:pink;
}
why is that?;/ thanks!