Im in the middle of porting my Bootstrap 2.3.2 project form to Bootstrap 3.
I canβt center the navigation links as I did before. I used this method earlier: the brand of the download center and the list of elements , but it does not work for my new navigator.
Below is a jsfiddle direclty link using one example bootstrap (with a sticky footer and navigation bar)
Can someone please help me focus these links?
http://jsfiddle.net/brainbolt/52VtD/4/
HTML
<div class="navbar navbar-default navbar-fixed-top center"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="#about">About</a> </li> <li><a href="#services">Services & Promos</a> </li> <li><a href="#contact">Contact</a> </li> </ul> </div> </div> </div>
CSS
.navbar-default > .container { text-align: center }
Thanks!
source share