Skip to content

Instantly share code, notes, and snippets.

@vosidiy
Last active December 8, 2019 15:48
Show Gist options
  • Save vosidiy/7744e6bdebb29b881360e5dd1ba03ff0 to your computer and use it in GitHub Desktop.
Save vosidiy/7744e6bdebb29b881360e5dd1ba03ff0 to your computer and use it in GitHub Desktop.
Navbar centered
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Brand </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav mx-auto">
<li class="nav-item active"> <a class="nav-link" href="#">Home </a> </li>
<li class="nav-item"><a class="nav-link" href="#"> About </a></li>
<li class="nav-item"><a class="nav-link" href="#"> Services </a></li>
</ul>
<a class="btn btn-warning" href="#">Button</a>
</div> <!-- navbar-collapse.// -->
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment