Currently, I am in the process of creating a registration page using HTML, CSS, and Bootstrap5. I have a couple of questions:
Within my code, there is a fixed height for the footer set at 55px. I am uncertain if this is considered good practice because I want the footer to overlay the social media icons and have a height equal to that of the navbar.
Secondly, I am looking to eliminate the scrollbar on the registration form so that the entire "sign up" page is displayed between the navbar and footer without the scrollbar. To visualize this, you can view the page here.
Below is the code snippet:
<html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f1939e9e858285839081b1c4dfc0dfc2">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"gt; <script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6c0e0303181f181e0d1c2c59425d425f">[email protected]</a>/dist/js/bootstrap.bundle.min.js></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script> <style> .footer { margin-top: auto; position: fixed; left: 0; bottom: 0; width: 100%; height: 55px; background-color: black; color: white; text-align: center; display: flex; align-items: center; } </style> </head> <body> <header> # Remaining code omitted for brevity... </footer> </body> </html>