First time diving into bootstrap and struggling with my items overflowing the container. Here's a snippet of my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="frontend/libraries/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="frontend/styles/main.css">
</head>
<body>
<div class="container">
<nav class="row navbar navbar-expand-lg navbar-light bg-primary">
<a href="#" class="navbar-brand">
<img src="frontend/images/Logo1.png" alt="Logo Nomads"/>
</a>
<button
class="navbar-toggler navbar-toggler-right"
type="button"
data-toggle="collapse"
data-target="#navb"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navb">
<ul class="navbar-nav ml-auto mr-3">
<li class="nav-item mx-md-2">
<a href="#" class="nav-link active">Home</a>
</li>
<li class="nav-item mx-md-2">
<a href="#" class="nav-link">Travel Packages</a>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="navbardrop"
data-toggle="dropdown">
Services
</a>
<div class="dropdown-menu">
<a href="#" class="dropdown-item">bink</a>
<a href="#" class="dropdown-item">bink</a>
<a href="#" class="dropdown-item">bink</a>
</div>
</li>
<li class="nav-item mx-md-2">
<a href="google.com" class="nav-link">Testimonial</a>
</li>
</ul>
</div>
</nav>
</div>
<script src="frontend/libraries/jquery/jquery-3.6.1.min.js"></script>
<script src="frontend/libraries/bootstrap/js/bootstrap.js"></script>
</body>
</html>
Here is the relevant CSS for adjusting image size within the navbar branding area:
.navbar-brand img {
max-height: 40px;
}<!-- sourceMappingURL=main.css.map -->
Live preview screenshot: https://i.sstatic.net/lqyZt.png
Goal visualization: https://i.sstatic.net/hhpZp.png
Questioning if it's an issue with live preview settings or potential errors in my code.