My footer isn't sticking to the bottom
I have a contact page. Now i know my main isn't filling the space but i assumed the footer will be the last element but there's a space after the footer which i don't want. This is the code pen : https://codepen.io/oti-adjei/pen/yLwLGze
5 Replies
You could use position absolute or grid/flex on the body with align-self: end
I wrapped the content in a display grid and applied a margin-top: auto; to your footer tag forcing the footer to the bottom.
I wouldn't use position absolute as it will take it out of the flow of the document 😉 hope this helps
I add comments in so you can see what I did 😉
https://codepen.io/b1mind/pen/PojdyQz the way I like to do it.
no worries my friend