JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id="wrapper">
<header>
</header>
<div class="scrollfix">
<div class="side-left">
<p>Left Sidebar</p>
</div>
<div class="side-right">
<p>Right Sidebar</p>
</div>
<div class="content">
<div class="gallery"></div>
<div class="gallery"></div>
<div class="gallery"></div>
<div class="gallery"></div>
<div class="gallery"></div>
<div class="gallery"></div>
</div>
</div>
</div>
</body>
CSS
html, body {
margin: 0;
height: 100%;
}
header {
position: relative;
height: 150px;
background: #0a98ac;
z-index: 5;
}
p {
position: relative;
}
#wrapper {
margin: 0 auto;
max-width: 1200px;
height: 100%;
position: relative;
}
.scrollfix {
position: absolute;
top: 150px;
left: 0;
right: 0;
bottom: 0;
padding: 0 200px;
}
.side-left, .side-right {
width: 200px;
height: 100%;
color: #fff;
background: #000;
float: left;
margin: 0 0 0 -200px;
}
.side-right {
float: right;
margin: 0 -200px 0 0;
}
.content {
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
background: #666;
}
.gallery {
position: relative;
margin: 15px;
width: 140px;
height: 480px;
background: red;
float: left;
}