I managed to successfully position the div at the bottom using this code snippet:
#div {
position: absolute;
width: 100%;
height: 58px;
margin: 0 auto;
bottom: 0;
left: 0;
overflow: hidden;
}
Lately, I decided to add a sidebar to my website which is 300px wide. Upon opening the sidebar, the entire site shifts to the left by 300px, except for the div positioned at the bottom.
After some experimentation, I discovered that if I remove the position: absolute;
property from the CSS, the div will move along with the rest of the elements on the site, but it will no longer be anchored at the bottom.
Is there a way to have the div move with the site when the sidebar opens while still remaining at the bottom of the page?
Any help or suggestions would be greatly appreciated.