To achieve this specific structure, the key is to utilize overflow scroll on the parent element. I have successfully implemented this on Codepen, where you can access the link provided below.
Visit the Codepen Link Here
Here's a snippet of the HTML code:
<div class="container">
<div class="header">
HEADER HEADER HEADER HEADER HEADER HEADER HEADER HEADER
</div>
<div class="sidebar">
<p>This</p>
<p>Is</p>
<p>Sidebar</p>
<p>Block</p>
</div>
<div class="tcontainer">
<table>
<tbody>
// Multiple rows and data here
</table>
</div>
</div>
For the CSS styling:
.header{
padding:10px;
background: #eee;
}
.sidebar{
background: #ddd;
float: left;
width: 30%;
min-width: 100px;
}
.container{
width: 500px;
}
.tcontainer{
width: 70%;
overflow: auto;
}
td{
background: grey;
text-align: center;
width: 50px;
padding: 5px 20px;
}