I've attempted to create a sticky DIV using the code below, but it's not behaving as anticipated. The DIV sticks when I scroll down, but it overlaps with the website Header and Footer. How can I fix this issue using CSS/JS? Any assistance would be greatly appreciated. Thank you.
.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>
-----