Answer the question
In order to leave comments, you need to log in
How to make an element visible in the bootstrap navbar in the mobile version. Ie disable hiding in the mobile version?
<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="#">Disabled</a>
</li>
</ul>
</div>
</nav>
Answer the question
In order to leave comments, you need to log in
Replace navbar-expand-lg
with navbar-expand
.
This will expand the navigation for all screen sizes, not just lg
.
https://getbootstrap.com/docs/4.1/examples/navbars/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question