You just need to remove float:right;
on #middle
and put it after #left
and #right
in HTML markup.
See this FIDDLE
HTML :
<div id="wrapper">
<div id="right"></div>
<div id="left"></div>
<div id="middle"></div>
</div>
CSS
#wrapper {
width: 100%;
}
#left {
float: left;
width: 50px;
}
#right {
float: right;
width: 50px;
}