Page 67 - JqueryMobile_Manual
P. 67
67
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Columns</h1>
</div>
<div data-role="main" class="ui-content">
<p>Five-column Layout:</p>
<div class="ui-grid-d">
<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 class="ui-block-e">
<a href="#" class="ui-btn ui-corner-all ui-shadow">Fifth Column</a><br>
<span>Fifth Column: This is some text. This is some text. This is some text. This is some text.</span>
</div>
</div>
</div>
</div>
</body>
</html>
Customize grids
tryjqmob_grid_css.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>
<style>
.ui-block-a, .ui-block-b, .ui-block-c {
background-color: lightgray;
border: 1px solid black;
height: 100px;
font-weight: bold;
text-align: center;
padding: 30px;
}