Note that there are some explanatory texts on larger screens.

plurals
  1. POFixed header navbar issue with jQuery Mobile
    text
    copied!<p>I'm trying to implement a fixed navbar in my app and I'm have an issue where the navbar doesn't show up. It seems to appear collapsed, see the following image for reference:</p> <p><img src="https://i.stack.imgur.com/njRbS.png" alt="enter image description here"></p> <p>It is supposed to look like this:</p> <p><img src="https://i.stack.imgur.com/pcCOy.png" alt="enter image description here"></p> <p>Here is the related code I am using:</p> <pre><code>&lt;div data-role="header" data-id="header" data-position="fixed"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" data-role="button" data-icon="b" data-inline="true" data-iconpos="notext" class="ui-btn-right"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="index.html" data-role="button" data-icon="star" data-inline="true" data-iconpos="notext" class="ui-btn-right"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="index.html" data-role="button" data-icon="grid" data-inline="true" data-iconpos="notext" class="ui-btn-right"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="index.html" data-role="button" data-icon="search" data-inline="true" data-iconpos="notext" class="ui-btn-right"&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /navbar --&gt; &lt;/div&gt;&lt;!-- /header --&gt; </code></pre> <p>I am able to successfully achieve the 2nd image by implementing the navbar outside of the header block, but I then can't set it to fixed position. I'm certain it isn't any issues with my CSS as I'm using the default theme minus a few color tweaks. Any suggestions?</p> <p>-- UPDATE --</p> <p>As requested here is a quick and dirty implementation on <a href="http://jsfiddle.net/K6GMG/2/" rel="nofollow noreferrer">jsfiddle</a>.</p>
 

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