Download module 3.0 Navbar Center

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> <!--/.nav-collapse --> </div> </div> 

CSS

  .navbar-default > .container { text-align: center } 

Thanks!

+4
source share
1 answer

Submit this site , paste your 2.3.2 boot code here, and click the button showing 2.x>3 .

This will automatically transfer your code to 3.0.

OR

Refer this to get the boot documentation for the migration.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1499308/


All Articles