Black Footer - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Black Footer</title> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet"> <style> body { margin: 0; font-family: Arial, sans-serif; background-color: #e9ecef; display: flex; justify-content: center; align-items: center; height: 100vh; color: #333; } .footer { background: #343a40; color: white; padding: 40px 20px; width: 100%; position: fixed; bottom: 0; left: 0; box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); z-index: 10; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .footer .left, .footer .right { display: flex; align-items: center; } .footer .left h1 { margin-right: 20px; font-size: 24px; animation: fadeInLeft 1s ease-in-out; } .footer .left form { display: flex; animation: fadeInLeft 1.5s ease-in-out; } .footer .left input[type="email"] { padding: 10px 15px; border: none; border-radius: 25px 0 0 25px; outline: none; width: 200px; transition: transform 0.3s; } .footer .left input[type="submit"] { padding: 10px 20px; border: none; border-radius: 0 25px 25px 0; background-color: #ff6584; color: white; cursor: pointer; transition: background-color 0.3s; } .footer .left input[type="submit"]:hover { background-color: #ff3d6f; } .footer .left input[type="email"]:focus { transform: scale(1.05); } .footer .right .social-icons { display: flex; margin-right: 100px; } .footer .right .social-icons a { color: white; font-size: 20px; margin: 0 10px; transition: transform 0.3s, color 0.3s; } .footer .right .social-icons a:hover { transform: scale(1.2); color: #ff6584; } .footer .right .social-icons a:active { transform: scale(0.9); } @keyframes fadeInLeft { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } } </style> </head> <body> <div class="footer"> <div class="left"> <h1>Subscribe!</h1> <form> <input type="email" placeholder="Enter your email" required> <input type="submit" value="Sign Up"> </form> </div> <div class="right"> <div class="social-icons"> <a href="#" title="Facebook"><i class="fab fa-facebook-f"></i></a> <a href="#" title="Twitter"><i class="fab fa-twitter"></i></a> <a href="#" title="Instagram"><i class="fab fa-instagram"></i></a> <a href="#" title="LinkedIn"><i class="fab fa-linkedin-in"></i></a> </div> </div> </div> </body> </html>