My content is overlapping the navbar on certain screen sizes, and I'm not sure why. Any ideas on how to fix this issue? Would wrapping everything in a container help?
Currently using bootstrap v5.3.0-alpha1.
Additionally, when I have a collapsed navbar, the button becomes unclickable due to the overlapping sections. Any solutions for this?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f0929f9f848384829180b0c5dec3dec0dd919c" rel="nofollow">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="{{ url_for('static', filename='css/dashboard.css') }}" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c5a7aaaab1b6b1b7a4b5e8aca6aaabb685f4ebf4f5ebf6" rel="nofollow">[email protected]</a>/font/bootstrap-icons.css">
</head>
<body>
<nav class="navbar bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src={{url_for('static', filename='/images/logo.png')}} id="logo" alt="Logo" width="50" height="50" class="d-inline-block align-text-top" style="border-radius: 5px;">
</a>
<div class="btn-toolbar align-items-center justify-content-center" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group me-2" role="group" aria-label="sign in">
<div class="dropdown">
<!-- dropdown-toggle -->
<button class="btn btn-primary" id="connect_wallet_button" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Sign In
</button>
<ul class="dropdown-menu dropdown-menu-end d-none" id="dropdown_menu">
<li><a class="dropdown-item" href="#" id="logout_button">Logout</a></li>
</ul>
</div>
</div>
<div class="btn-group me-2" role="group" aria-label="theme button">
<a href="/#">
<i class="bi bi-sun" id="theme_icon" style="font-size: 1.3rem;"></i>
</a>
</div>
</div>
</div>
</nav>
<div class="position-absolute top-50 start-50 translate-middle p-3">
<div class="card">
<div class="card-body">
<h3 class="card-title text-center">test form</h3>
<form class="needs-validation" id="form" action="/form" method="post">
<div class="mb-3">
<label for="name" class="form-label">test</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
<!-- more form elements here -->
<div class="d-none" id="form_button_group">
<button type="button" class="btn btn-secondary" id="clear_button">Clear</button>
<button type="submit" class="btn btn-primary" id="submit_button">Submit</button>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6c4c9c9d2d5d2d4c7d6e693889588968bc7cad6cec797" rel="nofollow">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/dashboard.js') }}"></script>
<script type="application/javascript" src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js"></script>
</body>
</html>