I need a navbar toggler that still looks good on mobile devices.
Here is the link to the bootstrap documentation I am referring to: https://getbootstrap.com/docs/4.3/components/navbar/
For example, take a look at their code snippet:
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
</nav>
Everything works fine when inspecting their site, but when I implement it on my site, the dropdown menu defaults to open and cannot be turned off. Any assistance would be greatly appreciated.
I also have some issues with dependencies due to my lack of understanding in libraries. Here is my messy attempt to make it work:
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="{{ url_for('static', filename='logo/icon_logo.png') }}">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link rel="stylesheet" href="static/css/bootstrap.min.css" />
<link rel="stylesheet" href="static/css/2bootstrap.min.css" />
<link rel="stylesheet" media="screen" href="static/css/main.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<title>Mansura</title>
</head>
*stuff in the body below
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="static/js/bootstrap-js/bootstrap.js"></script>
This attempt feels like throwing things against the wall to see what sticks, unfortunately, it hasn't helped so far.
Thank you