I have two divs, #left and #right inside a #container. The left div is fluid. The right div has a fixed width. How can I get the left div to shrink or expand when resizing the browser while the right div stays in place? Can't seem to make this work. Surprisingly, the opposite (left div fixed, right div fluid) is easy.
Thanks in advance for your help. Here's the code:
#container {
width: 80%;
height: 200px;
margin: 0 auto;
border: 1px solid grey;
}
#left {
height: 100px;
background-color: red;
}
#right {
width: 100px;
height: 100px;
background-color: green;
}
<div id="container">
<div id="left">
</div>
<div id="right">
</div>
</div>
CSS: