Trying to do this with CSS only.
I have a canvas on the left side that I want to reduce both the width and the height when resizing the window. You want the center and right divs to shrink in height to fit the canvas. You donβt want the center and right divs moving under the canvas.
<div class="container">
<div class="left">
<canvas id="draw" width="250" height="300"></canvas>
</div>
<div id="center" class="center"></div>
<div id="right" class="right"></div>
</div>
Fiddle: https://jsfiddle.net/mrx6zk27/
Any help would be greatly appreciated. While expecting, I will probably need JavaScript to level the heights, but you want to reduce JavaScript as little as possible.
Update: script using table layout (doesn't work): https://jsfiddle.net/mrx6zk27/2/