i noticed that on my firefox the distance between the bottom of the website and the list for links(terms,about...) is really large, i cannot seem to figure out what to specify i
i noticed that on my firefox the distance between the bottom of the website and the list for links(terms,about...) is really large
This is the nature of the webpage you have created because the content only goes as far as that height. In order for your footer element to stay at the bottom: I recommend utilizing Flexbox & setting margin-top: auto
to your footer. In order for the margin to kick in, simply give your container (in this case, .body
) the flex
display property & a minimum height
of 100vh
(so that it takes at least 100% of the viewport in terms of height) and assign column
as it's flex-direction
. This way, the footer can always stay at the bottom on your given layout.
body {
display: flex;
flex-flow: column;
min-height: 100vh;
}
footer.cl {
margin-top: auto;
}