Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use Bootstrap's <code>.row-fluid</code> to accomplish what you need.</p> <p>I've inlined the css for the width of the dropdown menu but you can specify a class/id and include that in your stylesheet.</p> <p>Basically, what's going on here is:</p> <ul> <li>We are creating a fluid grid inside of the dropdown</li> <li>Setting a fixed width for the dropdown container itself</li> <li>The <code>li</code> tags are inheriting their style from the parent dropdown</li> </ul> <p>The example below was only tested in Chrome v23</p> <p><strong>* Boostrap 2.x:</strong></p> <pre><code>&lt;ul id="multicol-menu" class="nav pull-right"&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;MultiCol Menu &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;div class="row-fluid" style="width: 400px;"&gt; &lt;ul class="unstyled span4"&gt; &lt;li&gt;&lt;a href="#"&gt;test1-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test1-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test1-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class="unstyled span4"&gt; &lt;li&gt;&lt;a href="#"&gt;test2-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test2-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test2-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class="unstyled span4"&gt; &lt;li&gt;&lt;a href="#"&gt;test3-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test3-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test3-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p><strong>[EDIT]</strong></p> <p><strong>* Boostrap 3.x:</strong></p> <pre><code>&lt;ul id="multicol-menu" class="nav pull-right"&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;MultiCol Menu &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;div class="row" style="width: 400px;"&gt; &lt;ul class="list-unstyled col-md-4"&gt; &lt;li&gt;&lt;a href="#"&gt;test1-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test1-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test1-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class="list-unstyled col-md-4"&gt; &lt;li&gt;&lt;a href="#"&gt;test2-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test2-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test2-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class="list-unstyled col-md-4"&gt; &lt;li&gt;&lt;a href="#"&gt;test3-1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test3-2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;test3-3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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