I'm having a tough time figuring out why the flex box aspect is making things so complicated for me. My goal is to achieve responsiveness like this -
https://i.sstatic.net/MdzPO.png
Despite following various flex tutorials, I haven't been successful. Here's my HTML/CSS:
<div class="frame">
<div id = "topBar">
</div>
<div id = "leftCol">
</div>
<div id = "rightCol">
</div>
<div id = "center">
<span>
</span>
</div>
<div id = "bottomCol">
</div>
</div>
CSS:
.frame {
position: fixed;
display: none;
z-index: 10000;
top: 0;
left: 0;
display: flex;
width: 100%;
max-width: none;
height: 100vh;
padding: 3rem;
box-sizing: border-box;
bottom: 0;
text-align: center;
// grid-template-columns: 15% 70% 15%;
// grid-template-rows: 15% 70% 15%;
}
#topBar {
text-align: center;
justify-content: center;
align-items: center;
float: center;
width: 100%;
}
#bottomCol {
align-self: flex-end;
width: 100%;
text-align: center;
}
#bottomCol p {
transform: rotate(0deg);
display: inline-block;
padding: 0;
padding-right: 6px;
}
#leftCol {
float: left;
width: 33%;
position: relative;
}
#leftCol > h2, p{
transform: rotate(-90deg);
}
#rightCol {
float: right;
position: relative;
transform: rotate(90deg);
}
.scrollBar {
width: 2px;
height: 55px;
background: white;
border-radius: 10px;
top: 15px;
overflow-y: scroll;
}
#center {
position: relative;
overflow: visible;
bottom: 200px;
width: 300px;
}
The current setup doesn't meet my requirements. How can I make it work as intended?