Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap centering navbar
    primarykey
    data
    text
    <p>I'm new to bootstrap and am having a bit of trouble positioning a fluid dropdown menu. I would like to have it in the center or my page and have tried a few things, but it's not quite right. </p> <p>I have tried to add a class of span6 and then add <code>float: none; margin: 0 auto;</code> to the css, and this does center it, but when the responsive menu kicks in it's somewhere between the middle instead of the left side. This also messes with the menu items.</p> <p>I have also tried placing <code>text-align:center;</code> in various places to see if that would do anything, but it doesn't seem to effect anything. </p> <p>Any help would be wonderful!</p> <p>Here is my html</p> <pre><code>&lt;div class="container-fluid"&gt; &lt;div class="row-fluid"&gt; &lt;div class="span12" &gt; &lt;div class="navbar "&gt; &lt;div class="container-fluid"&gt; &lt;a data-target=".unique1" data-toggle="collapse" class="btn btn-navbar"&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;/a&gt; &lt;div class="nav-collapse collapse navbar-responsive-collapse unique1"&gt; &lt;ul class="nav"&gt; &lt;li&gt;&lt;?=anchor('/frontpage', 'Who we are');?&gt;&lt;/li&gt; &lt;li class="dropdown"&gt; &lt;a data-toggle="dropdown" class="dropdown-toggle" href="#"&gt;Do you need Diligence?&lt;strong class="caret"&gt;&lt;/strong&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;a href="#"&gt;Action&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Another action&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Something else here&lt;/a&gt; &lt;/li&gt; &lt;li class="divider"&gt;&lt;/li&gt; &lt;li class="nav-header"&gt;Nav header&lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Separated link&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;One more separated link&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class="dropdown"&gt; &lt;a data-toggle="dropdown" class="dropdown-toggle" href="#"&gt;Dropdown&lt;strong class="caret"&gt;&lt;/strong&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;a href="#"&gt;Action&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Another action&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Something else here&lt;/a&gt; &lt;/li&gt; &lt;li class="divider"&gt;&lt;/li&gt; &lt;li class="nav-header"&gt;Nav header&lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Separated link&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;One more separated link&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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