Creating tables with jQuery Mobile

A simple example of creating columns with jQuery Mobile.
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="jQuery example for Tizen"/>
    
    <title>jQuery Mobile example for Tizen</title>
    
    <link rel="stylesheet" href="./css/jquery.mobile-1.3.2.css"/>
 
    <script type="text/javascript" src="./js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="./js/jquery.mobile-1.3.2.js"></script>

    <style>
    </style>
</head>

<body>

<div data-role="page" id="cpage">
  <div data-role="header">
  <h1>Columns jQuery Mobile</h1>
  </div>

  <div data-role="main" class="ui-content">
    <p>three columns layout</p>
    <div class="ui-grid-b">
      <div class="ui-block-a">
        <a href="#somelink" class="ui-btn ui-corner-all ui-shadow">Button 1</a><br>
        <span>You can write some text here, in the first column.</span>
      </div>
      <div class="ui-block-b">
        <a href="#somelink" class="ui-btn ui-corner-all ui-shadow">Button 2</a><br>
        <span>You can write some text also in the second column.</span>
      </div>
      <div class="ui-block-c">
        <a href="#somelink" class="ui-btn ui-corner-all ui-shadow">Button 3</a><br>
        <span>You can also write text in this great third column</span>
      </div>
    </div>
  </div>
</div> 

<script>
</script>

</body>
</html>

Responses

0 Replies