When the screen width decreases, I need to find a way to position 3 tables below each other without using float or breaking the jquery mobile layout. Using float: left;
on the surrounding containers of each table is not an option as it disrupts the jquery mobile layout.
I attempted to create a small grid layout, but it ended up collapsing my tables instead of arranging them vertically.
How can I achieve this layout structure where the 3 tables stack below each other seamlessly when the screen size shrinks?
Here's a snippet of my current page layout:
<body class="container">
<div data-role="page" data-theme="a">
<div data-role="header" data-position="inline">
<h1>Title</h1>
</div>
<div data-role="content" data-theme="a">
<div data-demo-html="true">
<div data-role="collapsible-set" data-theme="a" data-content-theme="d" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
<div data-role="collapsible" data-collapsed="false">
</div>
<div data-role="collapsible">
<h3>Title</h3>
<div class="ui-grid-b">
<div class="ui-block-a">
<form class="form-search">
<div class="content">
<h3>Title</h3>
<table class="center alfabet">
<tr>
<td>Blabla</td>
<td>Blabla</td>
<td>Blabla</td>
<td></td>
</tr>
</table>
</div>
</form>
</div>
<div class="ui-block-b">
<form class="form-search">
<div class="content">
<table class="center alfabet">
<tr>
<td>Blabla</td>
<td>Blabla</td>
<td>Blabla</td>
<td></td>
</tr>
</table>
</div>
</form>
</div>
<div class="ui-block-c">
<form class="form-search">
<div class="content">
<table class="center alfabet">
<tr>
<td>Blabla</td>
<td>Blabla</td>
<td>Blabla</td>
<td></td>
</tr>
</table>
</div>
</form>
</div>
</div>
</div>
</div>
<div data-role="collapsible">
</div>
</div>
</div>
</div>
</body>