JSFiddle - React, Tailwind, and code Playground
by Ea Bangalore
HTML
<div id="wrapper" class="toggled hidden-xs">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
</ul>
</div>
<div class="stories-preview-wrapper">
<ul class="sidebar-nav">
<li>hello world 2</li>
<li>hello world 2</li>
</ul>
</div>
</div>
CSS
#wrapper {
padding-left: 0;
transition: all 0.5s ease;
height: 100%;
}
#sidebar-wrapper {
z-index: 1000;
/* position: fixed;
top: 0;
left: 0;
width: 210px;
height: calc(80vh - 6px); As you give a border of 3px
overflow-y: auto;
background: rgba(0,0,0,0.9);
transition: all 0.5s ease; */
overflow: hidden;
display: flex;
flex-direction: column;
border: 3px solid red;
color:white;
}
.stories-preview-wrapper{
position: fixed;
height: calc(20vh - 6px); /* As you give a border of 3px */
bottom: 0;
left: 0;
border: 3px solid green;
width: 210px;
}
.sidebar-nav{
overflow: auto;
}