My goal is to design a layout with 3 elements, two of which have fixed width while the third will occupy the remaining width of the parent container.
(1): fixed-fluid-fixed
The fluid element contains 2 divs, one floated left and the other floated right inside the middle fluid div.
(2): When the fixed divs are placed beside each other, the arrangement should be like this: fixed-fixed-fluid
.
(3): If one of the fixed divs is removed, the fluid div should expand to fill the space, resulting in a fluid-fixed
layout.
(4): Similarly, if the later fixed div is deleted, the fluid should grow to take up the space, creating a fixed-fluid
layout as illustrated.
My Attempts: http://jsfiddle.net/nagendra_rao/28QUr/ (currently unable to rearrange the divs)
I prefer not to use JavaScript, I believe that achieving this layout is possible solely through HTML and CSS.