Layout with ui grid
Description
The following code shows how to layout with ui grid.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
<style type='text/css'>
.ui-grid-a div {<!--from w w w .j a v a 2s . co m-->
height: 150px;
}
#div1 {
background: #DDD;
}
#div2 {
background: #AAA;
}
#div3 {
background: #777;
}
#div4 {
background: #444;
}
</style>
</head>
<body>
<div id="main">
<div data-role="header" data-rel="back">
<h4>Page Header</h4>
</div>
<div class="ui-grid-a">
<div id="div1" class="ui-block-a">A1</div>
<div id="div2" class="ui-block-b">B1</div>
<div id="div3" class="ui-block-a">A2</div>
<div id="div4" class="ui-block-b">B2</div>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</body>
</html>