Basically the page has a navbar followed by a row containing two columns. In the left hand side column users profile information (profile pic, short bio, etc) is displayed and in the right hand side column some other information is displayed.
When I try to scroll the page it looks like the bootstrap card below navbar is scrolling over the navbar.
I would like the navbar and the left hand side column to remain fixed when page scrolls but the right hand side column can be scrolled.
Here is the html page..
<nav class="navbar navbar-expand-lg navbar-light bg-cream-shade" id='bootstrap-override-navbar'>
Some nav setup
</nav>
<!--here starts the problem-->
<div class="card bg-cream">
<div class="row">
<div class="col-2">
<div class="card" id='bootstrap-override-card'>
<div>
<img src=".." alt="Generic placeholder image"/>
</div>
<div class="media">
<div class="media-body">
<h5>Chanakya Sunkarapally</h5>
</div>
</div>
<p class="card-text"><small>Some quick info about me. </small></p>
<div class="list-group list-group-flush">
<!--list of stuff-->
</div>
<div class="card-body">
Some info
</div>
</div>
</div>
<div class="col-10 bg-white">
<!--Some Content-->
</div>
</div>
</div>
Here is the css for the page..
#bootstrap-override-card {
background: linear-gradient(to bottom, #ffffe1, #fffff4);
border: none;
/* position: sticky;*/
padding: unset;
top: auto;
position: sticky;
}
.bg-cream{
background: #fffff4;
}
.bg-cream-shade {
background: linear-gradient(to right, #ffffe1, #fffff4);
}
#bootstrap-override-navbar {
position: sticky;
top: 0;
}
So how to achieve this?