I have tried to make a sticky DIV with the below code but it's not working as expected. When I scroll down, the DIV is sticky but its overlapping to the website Header as well as the Footer. How to resolve this issue using CSS/JS? Any help will appreciable.Thanks.
.a{
float: left;
width: 67%;
}
.b{
width: 32%;
float: right;
position: fixed;
right: 0;
}
.c{
width: 100%;
}
<div class="c">
<div class="a">
-----
</div>
<div class="b">
-----
</div>
</div>
-----