stick footer to bottom without fixed code example
Example: make footer stick to bottom without overlap over other elements
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
#footer {
background-color: #efefef;
flex: 0 0 50px;/*or just height:50px;*/
margin-top: auto;
}