I need to place 3 div's within another div. the 3 subdivs are aligned left, center, and right..but I cna't get the middle one to align in the middle. The left and right div's are fixed width and the middle one should expand to fill out the space
looks like this
<div id="outerdiv" style="width: 100%; display:block; min-width: 600px;">
<div id="left" style="width: 200px; display:block; float:left;">
</div>
<div id="middle" style="width: auto; display:block; float:left;">
</div>
<div id="right" style="width=200px; display:block; float:right;">
</div>
</div>
I set a minwidth on the outer div so that the divs inside will not wrap when I resize smaller.
I want that center div to fill up the space between the other two divs, so that all three together fill up the outerdiv completely.
I was thinking if it ends up filling the outerdiv completely, then the right div could be floated left with the others because it will all fit. I still don't know how to get the center div to fill up the remaining space though.
any ideas?
looks like this
<div id="outerdiv" style="width: 100%; display:block; min-width: 600px;">
<div id="left" style="width: 200px; display:block; float:left;">
</div>
<div id="middle" style="width: auto; display:block; float:left;">
</div>
<div id="right" style="width=200px; display:block; float:right;">
</div>
</div>
I set a minwidth on the outer div so that the divs inside will not wrap when I resize smaller.
I want that center div to fill up the space between the other two divs, so that all three together fill up the outerdiv completely.
I was thinking if it ends up filling the outerdiv completely, then the right div could be floated left with the others because it will all fit. I still don't know how to get the center div to fill up the remaining space though.
any ideas?