Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap dropdown in collapse not showing on first attempt
    primarykey
    data
    text
    <p>I have a dropdown menu inside a nav-collapse.</p> <p>When I reduce the window's width (eg: 700px), the navbar correctly collapses, then I click on btn-navbar to un-collapse it, then I click on the dropdown, but it does not drop down, the menu does not show. If then I collapse and un-collapse again, the dropdown starts working.</p> <p>The same happens when the window's width is small from the beginning.</p> <p>It's like the height of the collapsed part was fixed at the beginning, and it doesn't let the dropdown do its thing.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css" /&gt; &lt;link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-responsive.css" /&gt; &lt;script src="js/jquery.js"&gt;&lt;/script&gt; &lt;script src="js/bootstrap.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="navbar"&gt; &lt;div class="navbar-inner"&gt; &lt;div class="container"&gt; &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt; &lt;button class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&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;/button&gt; &lt;!-- Be sure to leave the brand out there if you want it shown --&gt; &lt;a class="brand" href="#"&gt;Project name&lt;/a&gt; &lt;!-- Everything you want hidden at 940px or less, place within here --&gt; &lt;div class="nav-collapse"&gt; &lt;ul class="nav pull-right"&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt; Anonymous &lt;b class="caret"&gt;&lt;/b&gt; &lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-chevron-right'&gt;&lt;/i&gt; Login&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-plus'&gt;&lt;/i&gt; Register&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;/body&gt; &lt;/html&gt; </code></pre> <p>Bootstrap v2.2.0</p> <p>Firefox 16.0.2</p>
    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.
 

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