I am working on a flexbox layout with two columns.
The left column needs to be fixed, while the right column should be scrollable.
Can you provide some guidance on how to achieve this?
Here is the code snippet that I have been using:
#parent {
display: flex;
}
#left {
flex-grow: 1;
}
#left div {
position: fixed;
background: blue;
top: 0;
left: 0;
height: 100vh;
}
#right {
flex-grow: 5;
background: red;
height: 300vh;
}
<div id="parent">
<div class="child" id ="left">
<div>
ABC
</div>
</div>
<div class="child" id ="right">
DEF
</div>
</div>