in my previous question, that was kindly answered, I got 5 columns lined up. I'm wondering how I can prevent the columns from "moving vertically" when I scroll the page/body, except! column "C" which I want to move, as its the main one that will hold content, that in turn will make the page scrollable.
html,
body {
height: 100%;
margin: 0px;
padding: 0px;
width: 100%;
display: flex;
}
.col {
/* display: inline-block; */
position: relative;
height: 100%;
padding: 0 10px;
}
.a {
background-color: #2a85ff;
width: 20%;
}
.b {
background-color: #83bf6e;
width: 100px;
}
.c {
background-color: #ff6a55;
flex-grow: 2;
height:2000px
}
.c span {
font-weight: bolder;
}
.d {
background-color: #8e59ff;
width: 200px;
}
.e {
background-color: #b5e4ca;
width: 20%;
}
<div class="col a">
<h1>A</h1>
w:%percent
<br /> h:100%
<br/> scroll:no
</div>
<div class="col b">
<h1>B</h1>
w:pixel
<br /> h:100%
<br/> scroll:no
</div>
<div class="col c">
<h1>C</h1>
<span>w:remaining</span>
<br /> h:100%
<br/> scroll:yes
</div>
<div class="col d">
<h1>D</h1>
w:pixel
<br /> h:100%
<br/> scroll:no
</div>
<div class="col e">
<h1>E</h1>
w:%percent
<br /> h:100%
<br/> scroll:no
</div>