I recently updated my layout using bootstrap but I am facing a glitch. I want the layout to have fixed scrolling only within the columns, without affecting the entire page. Everything works fine until I add some text inside any of the columns, then the whole page starts scrolling instead of just the content inside the specific column.
.page-container {
height: 100vh;
display: flex;
flex-direction: column;
}
.page-container .page-container.nav-global {
padding: 20px 20px;
background-color: #fff;
z-index: 999;
}
.page-container .page-container.nav-global .nav-left {
display: inline-block;
}
.page-container .page-container.nav-global .nav-left a {
color: #ccc;
margin-right: 15px;
}
.page-container .page-container.nav-global .nav-left > i {
color: #ccc;
}
.page-container .page-container.nav-global .nav-right {
float: right;
}
.page-container .page-content {
border: none;
flex-grow: 1;
background-color: #eee;
}
.page-container .page-content .filter {
align-items: center;
overflow-y: hidden;
}
.page-container .page-content .result {
border: none;
}
.page-container .page-content .map {
border: none;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<div class='page-container'>
<nav class='nav-global'>
<div class='row'>
<div class='col-6'>
<div class='nav-left'>
<a href='#'>
<i class="fas fa-bars fa-lg"></i>
</a>
logo
</div>
</div>
<div class='col-6'>
<div class='nav-right'>
<i class="fas fa-lock fa-xs"></i> Join Now
</div>
</div>
</div>
</nav>
<div class='page-content container-fluid'>
<div class='row h-100'>
<div class='col-3 filter'>
scrol
</div>
<div class='col-3 result'>
CONTENT
</div>
<div class='col-6 map'>
MPA
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>