Note that there are some explanatory texts on larger screens.

plurals
  1. PObootstrap collapse menu disappears when resizing screen
    primarykey
    data
    text
    <p>I used bootstrap menu for my app. It looks like this: <img src="https://i.stack.imgur.com/uTGot.png" alt="menu ok"> but when I change window size to smaller, it disappears - looks like this: <img src="https://i.stack.imgur.com/Pbwt4.png" alt="menu disappears"> It disappears when its about ~965px wide (so its probably 979px). I tried <a href="https://stackoverflow.com/questions/15825442/fixed-bootstrap-navbar-disappearing-with-768-x-1024-view">this solution</a>, didnt work. May be I'm mixing bootstrap 2 and 3? This is my menu code:</p> <pre><code>&lt;div class="navbar navbar-inverse navbar-fixed-top"&gt; &lt;div class="navbar-inner"&gt; &lt;div class="container"&gt; &lt;a class="brand" href="/"&gt;Digrin&lt;/a&gt; &lt;div class="nav-collapse collapse"&gt; &lt;ul class="nav"&gt; {{ request.path }} &lt;li{% block nav_stocks %}{% endblock %}&gt;&lt;a href="/stocks/"&gt;Stocks&lt;/a&gt;&lt;/li&gt; &lt;li{% block nav_mystocks %}{% endblock %}&gt; &lt;a href="/stocks/mystocks"&gt;My Portfolio&lt;/a&gt;&lt;/li&gt; &lt;li{% block nav_watchstocks %}{% endblock %}&gt; &lt;a href="/stocks/watchstocks"&gt;Watcher&lt;/a&gt;&lt;/li&gt; {% if not user.is_authenticated %} &lt;li class="active"&gt;&lt;a href="/accounts/login/?next=/stocks/"&gt;Login&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/accounts/register/"&gt;Register&lt;/a&gt;&lt;/li&gt; {% else %} &lt;ul class="nav"&gt; &lt;li class="dropdown"&gt; &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt; {{ user.username }} &lt;i class="caret"&gt;&lt;/i&gt; &lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt;&lt;a href="/accounts/password/change/"&gt;Change password&lt;/a&gt;&lt;/li&gt; {% if user.is_staff %}&lt;li&gt;&lt;a href="/admin"&gt;Admin&lt;/a&gt;&lt;/li&gt;{% endif %} &lt;li&gt;&lt;a href="/accounts/logout/?next=/stocks/"&gt;Logout&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; {% endif %} &lt;/ul&gt; &lt;/div&gt;&lt;!--/.nav-collapse --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>includes:</p> <pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;!-- Le styles --&gt; &lt;link href="{% static "css/bootstrap.css" %}" rel="stylesheet"&gt; &lt;style&gt; body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ } &lt;/style&gt; &lt;link href="{% static "css/bootstrap-responsive.css" %}" rel="stylesheet"&gt; &lt;!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --&gt; &lt;!--[if lt IE 9]&gt; &lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; &lt;script src="{% static "js/jquery-1.8.1.min.js" %}" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="{% static "js/bootstrap.min.js" %}" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>And <a href="http://www.digrin.com" rel="nofollow noreferrer">site</a> (far from finished) If I zoom in, menu disappears as well.</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.
    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