Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Bootstrap 3</strong> has a <code>nav-justified</code> class that can be used on <code>nav</code>. No extra CSS required:</p> <pre><code>&lt;div class="container"&gt; &lt;h3 class="text-muted"&gt;Project name&lt;/h3&gt; &lt;ul class="nav nav-justified"&gt; &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Projects&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Downloads&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Demo: <a href="http://bootply.com/72519" rel="nofollow noreferrer">http://bootply.com/72519</a></p> <hr> <p>Based on the comments, to have full-width centered links using the <strong><code>navbar-nav</code></strong> class, use flexbox...</p> <pre><code>.navbar-center { width:100%; display: flex; } .navbar-center&gt;li { flex:1 1 auto; } &lt;div class="navbar navbar-default"&gt; &lt;div class="container"&gt; &lt;ul class="nav navbar-nav navbar-center text-center"&gt; &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;More&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Options&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><a href="https://www.codeply.com/go/6ZE3obnpuP" rel="nofollow noreferrer">https://www.codeply.com/go/6ZE3obnpuP</a></p> <hr> <p><strong>Also see</strong><br> <a href="https://stackoverflow.com/questions/19733447/bootstrap-navbar-with-left-center-and-right-aligned-items/20362024#20362024">Bootstrap NavBar with left, center or right aligned items</a><br> <a href="https://stackoverflow.com/questions/39945599/center-navbar-in-bootstrap/42736011#42736011">Center Navbar in Bootstrap</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload