Adding two div
s on top and bottom of a fixed div
is what I need to do. To achieve this, I created a panel with a fixed
position on the left side. I added the first div
with the h-100
class which sets its height to 100%. However, when I try to add the second div
to the panel, it doesn't show up in the result.
.vertical-side {
width: 250px;
z-index: 1001;
background: #fbfaff;
bottom: 0;
margin-top: 0;
position: fixed;
top: 0;
border-right: 1px solid #e9e9ef;
}
.second {
width: 250px;
height: 100px;
border-top: 1px solid #e9e9ef;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b6964647f787f796a7b4b3e253b2539">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="vertical-side">
<div class="first h-100">
First div
</div>
<div class="second">
Second div
</div>
</div>
To see a demo, click HERE
This is what I am trying to achieve: https://i.sstatic.net/tAEx0.jpg