Navbar doesn’t drop down and show the options on the mobile version. I am trying to figure out how to get it to work, but no luck.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>COS Gym</title>
<link href="cos-gym.css" rel="stylesheet" type= "text/css" />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<header >
<div class="container">
<nav font-size="120%" margin-left="30%" margin-top="8%" class="navbar navbar-expand-lg navbar-light">
<a href="#" text-decoration="none" padding="4%" class="navbar-brand">
<div class="logo">
<img src="images/logo_gym.png">
</div>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#toggleMobileMenu" aria-controls="toggleMobileMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="#toggleMobileMenu">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 text-center justify-content-end">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link active" aria-current="page" href="about.html">About</a></li>
<li class="nav-item"><a class="nav-link active" aria-current="page" href="schedule.html">Schedule</a></li>
<li class="nav-item"><a class="nav-link active" aria-current="page" href="online.html">Online</a></li>
<li class="nav-item"><a class="nav-link active" aria-current="page" href="shop.html">Shop</a></li>
<li class="nav-item"><a class="nav-link active" aria-current="page" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
</div>
</header>
<main>
<div class="imghome">
<img src="images/home.jpg">
<div class="title-home"><h>COS GYM</h>
<a href="login.html"><button class="btn-1">Log in</button></a>
<a href="registration.html"><button class="btn-2">Sign up</button></a></div>
<div class="three-images">
<figure>
<img src="images/main1.jpg">
<figcaption class="f1">Zumba Dance</figcaption>
</figure>
<figure>
<img src="images/main2.jpg">
<figcaption class="f2">Power Training</figcaption>
</figure>
<figure>
<img src="images/main3.jpg">
<figcaption class="f3">Yoga Fitness</figcaption>
</figure>
</div>
</main>
<footer>
<div>
<ul>
<dt>Email Us</dt>
<dt>[email protected]</dt>
</ul>
</div>
<div>
<h3>Welcome to ChrisOlySim Gym</h3>
<h4>Contact Us 989-888-9999</h4>
</div>
<div>
<ul>
<dt>Follow Us</dt>
<dt><i class="fab fa-facebook-f"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-twitter"></i>
</dt>
</ul>
</div>
</footer>
<script src="https://kit.fontawesome.com/42ca52e1de.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>
Also ms-auto doesn’t seem to work either, and when I try to change the size of the text, it refuses to grow past a certain point. Can I get help please? I’ve tried switching the order of the scripts that run, I’ve tried running it with JQuery, I’ve tried everything. The only time I see the options is when I use the container-fluid class, but since I can’t hide the options when I do that on the mobile version, there’s no point. How do I get this to work?