Twitter Bootstrap Wider Dropdown with 2 or more Div

I want to create a menu as shown below: enter image description here

But I cannot do this, here is my attempt: - http://jsfiddle.net/BqqqE/5/

Code below: -

<div class="dropdown">
  <a class="dropdown-toggle btn btn-danger" data-toggle="dropdown" href="#">Dropdown trigger <b class="caret"></b></a>
  <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
    <li class="dropdown-submenu"><a tabindex="-1" href="index.php">Project</a>
        <div class="dropdown-menu">
            <div class="container">
                <div class="row-fluid">
                    <div class="span6">
                        <ul class="unstyled">
                            <li class="nav-header">Category A </li>
                            <li>Item A</li>
                            <li>Item B</li>
                        </ul>
                    </div>
                    <div class="span6">
                        <ul class="unstyled">
                            <li class="nav-header">Category A </li>
                            <li>Item A</li>
                            <li>Item B</li>
                        </ul>                        
                    </div>
                </div>
            </div>
        </div>
    </li>
  </ul>
</div>

Is the above menu possible with Bootstrap?

thanks

+4
source share
1 answer

Take a look at this JSFiddle . I added a class dropdown-menu-tworows. You can set widthfor a submenu, but this is optional.

.dropdown-menu-tworows .span6 {
  width: 49%;
  display: inline-block;
}

Is that what you wanted?

+2
source

All Articles