Note that there are some explanatory texts on larger screens.

plurals
  1. PONavbar buttons in <head> moves (expands downward) with grid padding in <body>
    primarykey
    data
    text
    <p>I am trying to develop a Jquery mobile app but run into a problem which I could not find an answer in the web. The app has a navbar with 4 buttons and a 2-column grid to hold image links. The problem is when I add top padding to the block elements the left 2 buttons in navbar moves down. Can somebody please help! Thanks.</p> <p>html file:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name=viewport content="user-scalable=no,width=device-width" /&gt; &lt;title&gt;Citrus IPM Test_1&lt;/title&gt; &lt;link rel="stylesheet" href="../download18Dec13/jquery.mobile-1.3.2.min.css" /&gt; &lt;script src="../download18Dec13/jquery-1.9.1.min.js"&gt;&lt;/script&gt; &lt;script src="../download18Dec13/jquery.mobile-1.3.2.min.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="./css/my_style.css"/&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="header" data-position="fixed" data-theme="a"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=# class="ui-btn-active ui-state- persist"&gt;Insects&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=# &gt; Diseases&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=# &gt;Inspection&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=# &gt;Biosecurity&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;div class="ui-grid-a"&gt; &lt;div class="ui-block-a"&gt; &lt;a href="frw.html"&gt; &lt;img href="#" src="./img/frw_main.png" alt="FRW"&gt; &lt;br&gt;Fuller's rose weevil&lt;/a&gt; &lt;/div&gt; &lt;div class="ui-block-b"&gt; &lt;a href="lbam.html"&gt; &lt;img href="#" src="./img/frw_main.png" alt="LBAM"&gt;&lt;br&gt;Light brown apple moth&lt;/a&gt; &lt;/div&gt; &lt;div class="ui-block-a"&gt; &lt;a href="crs.html"&gt; &lt;img href="#" src="./img/frw_main.png" alt="CRS"&gt;&lt;br&gt;California red scale&lt;/a&gt; &lt;/div&gt; &lt;div class="ui-block-b"&gt; &lt;a href="cgw.html"&gt; &lt;img href="#" src="./img/frw_main.png" alt="CGW"&gt;&lt;br&gt;Citrus gall wasp&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="footer" data-id="footer.home" data-position="fixed" data-theme="a"&gt; &lt;div data-role=navbar&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=# data-icon=arrow-l&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=# data-icon=refresh&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=# data-icon=arrow-r&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; CSS file: .ui-navbar .ui-btn-text { font-family: 'Source Sans Pro', sans-serif; font-size:10px; padding:0px; important! } .ui-block-a{ font-family: 'Source Sans Pro', sans-serif; font-size:9px; //height:70px; //width:50px; display:block; padding:50px 0px 0px 0px; } .ui-block-b{ font-family: 'Source Sans Pro', sans-serif; font-size:9px; //height:70px; //width:50px; display:block; padding:50px 0px 0px 0px; } header{height:50px;width:auto;} img{ width:auto; //height:50px; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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