Howdy,
I'm learning some Bootstrap from one of my course and I went from working with CodePly to working in my locally practicing on localhost. However, when I got to the point of adding a toggle button which expands a list of nav links when on a smaller screen. However, when I try to click on the toggle, nothing happens. I tested the same code back on CodePly and it worked, is there something I need to enable for its work on my browser on localhost?
Note: I checked Firefox console and it is showing no error.
I'm using:
Thanks in advanced! I hope we can figure this out together.
I'm learning some Bootstrap from one of my course and I went from working with CodePly to working in my locally practicing on localhost. However, when I got to the point of adding a toggle button which expands a list of nav links when on a smaller screen. However, when I try to click on the toggle, nothing happens. I tested the same code back on CodePly and it worked, is there something I need to enable for its work on my browser on localhost?
Note: I checked Firefox console and it is showing no error.
I'm using:
HTML Code:FireFox 79.0 on Windows 10 Pro version 2004
Bootstrap version 4.5.2
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="">Code Forum</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="">Download</a>
</li>
<li class="nav-item">
<a class="nav-link" href="">Support</a>
</li>
</ul>
</div>
</nav>
</body>
</html>