Below is the code snippet that I am working with:
<nav class="navbar navbar-expand-sm navbar-dark ">
<div class="container-fluid">
<a class="navbar-brand" href="#">LOREM IPSUM</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav ml-auto">
<p class="navbar-text">lorem Ipsum Dolor</p>
<li class="nav-item ">
<a class="nav-link" href="#">LOREM</a>
</li>
<li class="nav-item">
<a class="nav-link">IPSUM</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">DOLOR</a>
</li>
</ul>
</div>
</div>
</nav>
This code generates the following output: https://i.sstatic.net/2LeuS.png
I am trying to display all my nav links in separate lines after "lorem ipsum dolor". I have attempted using display:block
, but it hasn't been successful. Any assistance on this matter would be greatly appreciated!