I am creating a menu where I will have 3 columns. First one has a fixed width, third one have a varying width and the second one should fill the remaining space.

So, I am facing two problems. First is, how do I get the middle box to fill the remaining space? and second, how do I get the links to stand next to each other with no fixed width?
Here is a code example.
<div id="menu"> <div id="left">I am fixed</div> <div id="middle"> <input type="text" id="search" placeholder="I should fill the remainder!" /> </div> <div id="right"> <div class="link">Link</div> <div class="link">Link</div> </div> </div> And a JSFiddle.