You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
I assume you must have googled many times and probably copied some code severally to get your footer to stick to the bottom of your web page. Secondly, you’ve never really focused on how easy it is to get it done.
This short piece will teach you how to get it done.
Let’s start!
There are two major ways of getting the sticky footer done in few minutes:
wrapper-push
flex
This method is fast but has some major limitations; the height of the footer must be known.
The html structure of your app should look like this:
<!DOCTYPE html><html> <head> <title>The Sticky Footer Way</title> <link rel='stylesheet' href='style.css'> </head> <body> <main class='wrapper'> All contents apart from the footer's content should be placed here even the header <div class='push'></div> </main> <footer class='footer'>This is my Footer</footer> </body></html>