If I have two columns side by side, I want the first column to take up remaining space dependent on the size of the second column.
So in this fiddle
.container {
width: 100%;
}
#leftColumn {
background-color: blue;
width: 50%;
height: 100vh;
float: left;
}
#rightColumn {
background-color: yellow;
width: 50%;
height: 100vh;
float: left;
}
when the second column is resized, the blue column should widen to move the yellow column to the edge of the browser so there is no extra space in the view.
How can I set this up for the first column in css?