Adding a Sticky Footer Using CSS


A sticky footer, a critical part of your website navigation, sticks to the bottom of your browser window. This makes navigating your website easier and can be added with CSS.

Adding a Sticky Footer Using CSS

A sticky footer, a critical part of your website navigation, "sticks" to the bottom of your browser window. This makes navigating your website easier and can be added with some CSS styles as shown below.

Below is the HTML, CSS, and JavaScript required to add a sticky footer to your website.

Step 1 - Add the HTML below to the page where you'd like your sticky footer

Step 2 - Add the CSS below to the main stylesheet of your website

Step 3 - Add the includes below to the pages where your sticky footer lives

Author

Scott Madara
Contributions Editor here at Solodev. Want to be featured on the Solodev Blog? Get in touch.
Follow me on Twitter

Get started today

Join people and businesses across the globe that trust Solodev.

We never share your information with anyone. Learn more

We use cookies to provide and improve our services. By using our site, you consent to cookies.