I have a webpage https://jiwidi.me/home/ where I have a footer that I want to stay at the bottom of the page even if I inject html code with js code. The footer works at the main page https://jiwidi.me/home/ but wont wort at https://jiwidi.me/home/blog/ for example where it's not in the bottom. In the blog page I'm inserting html code live so that makes the dimensions of the page change.
My current footer css looks like this:
footer {
clear: both;
margin-top: -200px;
position: absolute;
bottom: 0;
width: 100%;
height: 2.5rem;
text-align: center;
}
The footer should also stay centered.
Thanks!