Four-Column Grid
Description
A four-column (25%, 25%, 25%, 25%) grid is shown as follows.
Example
The CSS attribute for the grid is set to support four
columns (ui-grid-c
) and we
have added an additional block for the fourth column (ui-block-d).
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Grid Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head><!-- w w w . j ava 2 s. c o m-->
<body>
<div data-role="page" id="home" data-theme="d">
<div data-role="header" data-theme="a">
<h1>4-Column Grid</h1>
</div>
<div data-role="content">
<div class="ui-grid-c" style="text-align: center;">
<div class="ui-block-a">
Column
</div>
<div class="ui-block-b">
Column
</div>
<div class="ui-block-c">
Column
</div>
<div class="ui-block-d">
Column
</div>
</div>
</div>
</div>
</body>
</html>