Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Website Footer Example</title> <style> body { font-family: sans-serif; margin: 0; /* Create some fake content height so the footer sits at the bottom of the demo */ min-height: 100vh; display: flex; flex-direction: column; } .content { flex: 1; /* Pushes the footer to the bottom */ padding: 20px; } /* The Footer Container */ .site-footer { background-color: #222; color: #ccc; padding: 40px 20px 20px 20px; } /* Footer Layout using css grid */ .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; margin-bottom: 40px; } .footer-col h4 { color: white; font-size: 1.2em; margin-top: 0; margin-bottom: 15px; } .footer-col ul { list-style: none; padding: 0; margin: 0; } .footer-col ul li { margin-bottom: 10px; } .footer-col ul li a { color: #ccc; text-decoration: none; transition: color 0.3s ease; } .footer-col ul li a:hover { color: #00bcd4; /* Cyan highlight on hover */ } .social-links a { display: inline-block; margin-right: 15px; color: white; text-decoration: none; font-weight: bold; } /* Footer Bottom (Copyright) */ .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #444; font-size: 0.9em; } </style> </head> <body> <div class="content"> <h2>Main Page Content</h2> <p>Scroll down to see the footer.</p> </div> <footer class="site-footer"> <div class="footer-grid"> <!-- Column 1 --> <div class="footer-col"> <h4>Company</h4> <ul> <li><a href="#">About Us</a></li> <li><a href="#">Our Services</a></li> <li><a href="#">Privacy Policy</a></li> <li><a href="#">Affiliate Program</a></li> </ul> </div> <!-- Column 2 --> <div class="footer-col"> <h4>Get Help</h4> <ul> <li><a href="#">FAQ</a></li> <li><a href="#">Shipping</a></li> <li><a href="#">Returns</a></li> <li><a href="#">Order Status</a></li> </ul> </div> <!-- Column 3 --> <div class="footer-col"> <h4>Follow Us</h4> <div class="social-links"> <a href="#">Fb</a> <a href="#">Tw</a> <a href="#">Ig</a> <a href="#">In</a> </div> </div> </div> <div class="footer-bottom"> <p>© 2026 YourBrand Name. All rights reserved.</p> </div> </footer> </body> </html>