Note that there are some explanatory texts on larger screens.

plurals
  1. POResponsive tables with jquery mobile
    primarykey
    data
    text
    <p>I have 3 tables that must be positioned below each other when the screen width becomes smaller. Normally I would use <code>float: left;</code> on the surrounding containers of each table, but that doesn't work. It will break my jquery mobile layout.</p> <p>I thought I will make a small <a href="http://jquerymobile.com/demos/1.0a4.1/#docs/content/content-grids.html" rel="nofollow">grid layout</a> then, but that collapses my tables instead of positioning them below each other.</p> <p>How can I position 3 tables below each other when the screen width decreases, without using float, and without breaking the jquery mobile layout?</p> <p>Here's a sample of my page layout:</p> <pre><code>&lt;body class="container"&gt; &lt;div data-role="page" data-theme="a"&gt; &lt;div data-role="header" data-position="inline"&gt; &lt;h1&gt;Title&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content" data-theme="a"&gt; &lt;div data-demo-html="true"&gt; &lt;div data-role="collapsible-set" data-theme="a" data-content-theme="d" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d"&gt; &lt;div data-role="collapsible" data-collapsed="false"&gt; &lt;/div&gt; &lt;div data-role="collapsible"&gt; &lt;h3&gt;Title&lt;/h3&gt; &lt;div class="ui-grid-b"&gt; &lt;div class="ui-block-a"&gt; &lt;form class="form-search"&gt; &lt;div class="content"&gt; &lt;h3&gt;Title&lt;/h3&gt; &lt;table class="center alfabet"&gt; &lt;tr&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;div class="ui-block-b"&gt; &lt;form class="form-search"&gt; &lt;div class="content"&gt; &lt;table class="center alfabet"&gt; &lt;tr&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;div class="ui-block-c"&gt; &lt;form class="form-search"&gt; &lt;div class="content"&gt; &lt;table class="center alfabet"&gt; &lt;tr&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;Blabla&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="collapsible"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre>
    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.
    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