I tried to let the footer stay at the bottom on the "short page", which means there's not enough content to push the footer down.
this is what I want it to look like:
this is how it look right now:
this is the css code:
.footer {
clear: both;
position: static;
bottom:0;
width: 100%;
margin-top: 5vh;
padding-left:5%;
padding-right: 5%;
margin-bottom: 5vh;
color: white;
}
if I use position: fixed
, it will stay at the bottom of the screen, but when it's "long page", it will also overlay the body as I scroll, like this:
position: sticky
is the same kind of result.
if it's position: absolute
, it will just stuck at the certain spot
I googled the entire day but still, really need some help.