I want to put a bar in the menu as shown below:
Home | Instructor Course | Legal Advice
For this I am using the code below:
<div class="row">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#"> </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="#">Principal</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Curso de Instrutor</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Assessoria Jurídica</a>
</li>
</ul>
</div>
</nav>
</div>
And in CSS:
ul li
{
display: inline;
}
li:before {
content: " | ";
}
li:first-child:before {
content: none;
}
It's just like this:
How can I fix this?