I'm trying to sit a fixed width div between two variable width divs.
What I have right now is this:

And I am trying to achieve this:

I've tried using display:table as well and was close, but could not get the 'left' and 'right' text to stay at the sides (I put the middle cell to margin: auto, but that means it kicks out space from the left and right div).
<div id="left">left</div>
<div id="right">right</div>
<div id="mid">mid</div>
#left
{
float: left;
border: solid 1px red;
text-align: right;
}
#mid
{
margin-left: auto;
margin-right: auto;
border: solid 1px red;
text-align: center;
width: 60px;
}
#right
{
float: right;
border: solid 1px red;
text-align: left;
}