Does anyone have suggestions on how to resize the middle red container when the window is resized, considering the fixed-width black containers on the left and right? I am aware that this can be achieved using jQuery by calculating the window width and applying it to the middle <div>
, but I was wondering if there is a solution that does not involve JavaScript.
Link to Example
<div id="wrapper">
<div class="pull-left black"></div>
<div class="middle red"></div>
<div class="pull-right black"></div>
</div>