Closed blade-sensei closed 4 years ago
html {
position: relative;
min-height: 100%;
}
body {
margin: 0 0 100px; /* bottom = footer height */
}
#bottom-footer {
position: absolute;
left: 0;
bottom: 0;
height: 100px;
width: 100%;
}
Solution
we can also use
html {
height: 100vh
}
to adapt all the body/html content to fit in the viewport
difference. height on pourcent and vh
pourcent. adapts to the parent height/width vh adapts to the viewport
implementing or blog website deploy to server