Page 66 - JqueryMobile_Manual
P. 66
66
Four-column layout
tryjqmob_grid_c.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Columns</h1>
</div>
<div data-role="main" class="ui-content">
<p>Four-column Layout:</p>
<div class="ui-grid-c">
<div class="ui-block-a">
<a href="#" class="ui-btn ui-corner-all ui-shadow">First Column</a><br>
<span>First Column: This is some text. This is some text. This is some text. This is some text. This is
some text.</span>
</div>
<div class="ui-block-b">
<a href="#" class="ui-btn ui-corner-all ui-shadow">Second Column</a><br>
<span>Second Column: This is some text. This is some text. This is some text. This is some text.</span>
</div>
<div class="ui-block-c">
<a href="#" class="ui-btn ui-corner-all ui-shadow">Third Column</a><br>
<span>Third Column: This is some text. This is some text. This is some text. This is some text.</span>
</div>
<div class="ui-block-d">
<a href="#" class="ui-btn ui-corner-all ui-shadow">Fourth Column</a><br>
<span>Fourth Column: This is some text. This is some text. This is some text. This is some text.</span>
</div>
</div>
</div>
</div>
</body>
</html>
Five-column layout
tryjqmob_grid_d.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>