Is it feasible to combine the carousel and navbar in a similar manner as demonstrated here: .
I attempted to place the carousel within the nav element, but it didn't appear to work as expected. Here is the HTML code I used:
<div class="navbar navbar-expand-lg navbar-light"">
<a class="navbar-brand" href="#">WeDesign</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav">
<li class="nav-item">
<a href="#" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Home</a>
</li>
</ul>
</div>
</div>
</div>
<div id="" class="carousel slide" data-ride="carousel" data-interval="3000" data-pause="false">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://images.pexels.com/photos/1779487/pexels-photo-1779487.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://images.pexels.com/photos/1999463/pexels-photo-1999463.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="d-block w-100" alt="...">
</div>
</div>
</div>