Five-Column Grid

Description

A five-column (20%, 20%, 20%, 20%, 20%) grid is shown as follows.

Example


<!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><!--from   ww  w  . j  a  v a  2s .c o m-->
<body>

  <div data-role="page" id="home">
    <div data-role="header">
      <h1>5-Column Grid</h1>
    </div>

    <div data-role="content">
      <div class="ui-grid-d" 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 class="ui-block-e">Column</div>
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo

The CSS attribute for the grid is set to support five columns (ui-grid-d) and we have added an additional block for the fifth column (ui-block-e).





















Home »
  jQuery Mobile »
    Tutorial »




jQuery_Mobile
Form
List
Layout
Theme