Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
145 lines (130 sloc) 4.35 KB
<!DOCTYPE html>
<title>jquery mobile + 960 grid</title>
<link rel="stylesheet" href="js/jquery-mobile/" />
<script type="text/javascript" src="js/jquery/jquery-1.5.js"></script>
<script type="text/javascript" src="js/jquery-mobile/"></script>
* official 960
* fluid 960
* jquery mobile grid
* blueprint
### TODO
* to match official API: need prefix/suffix/container_16
* yep be compatible
* static 960 with 12 columns, and with 16 columns
* fluid 960 with 12 and 16 columns
* how to publish it ?
body {
background-color: #666;
div[data-role=page] {
left : 50%;
margin-left : -480px;
width : 990px;
.container_12 {
width : 990px;
.container_12 .grid_1 { width: 80px; }
.container_12 .grid_2 { width: 160px; }
.container_12 .grid_3 { width: 240px; }
.container_12 .grid_4 { width: 320px; }
.container_12 .grid_5 { width: 400px; }
.container_12 .grid_6 { width: 480px; }
.container_12 .grid_7 { width: 560px; }
.container_12 .grid_8 { width: 640px; }
.container_12 .grid_9 { width: 720px; }
.container_12 .grid_10 { width: 800px; }
.container_12 .grid_11 { width: 880px; }
.container_12 .grid_12 { width: 960px; }
.container_12 .alpha {
clear: left;
{ margin: 0; padding: 0; border: 0; float: left; }
<div data-role="page">
<div data-role="header">
<h1>jquery mobile + 960 grid</h1>
</div><!-- /header -->
<div data-role="content">
<h1 class="pagetitle">grid-960-12 3time grid_4</h1>
<div class="container_12">
<div class="grid_12 alpha omega"><a href="javascript:void()" data-role="button">button A</a></div>
<div class="grid_2 alpha"><a href="javascript:void()" data-role="button">button A</a></div>
<div class="grid_7"><a href="javascript:void()" data-role="button">button C</a></div>
<div class="grid_3 omega">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
<li data-role="list-divider">Overview</li>
<li><a href="docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li><a href="docs/about/features.html">Features</a></li>
<li data-role="list-divider">Overview</li>
<li><a href="docs/about/accessibility.html">Accessibility</a></li>
<li><a href="docs/about/platforms.html">Supported platforms</a></li>
<h1>grid-960-12 3time grid_4</h1>
<div class="container_12">
<div class="grid_1 alpha"><a href="javascript:void()" data-role="button">button A</a></div>
<div class="grid_3"><a href="javascript:void()" data-role="button">button B</a></div>
<div class="grid_8 omega"><a href="javascript:void()" data-role="button">button C</a></div>
<h1>grid-960-12 4time grid_3</h1>
<div class="container_12">
<div class="grid_3 alpha">Block A</div>
<div class="grid_3">Block B</div>
<div class="grid_3">Block C</div>
<div class="grid_3 omega">Block D</div>
<div class="grid_3 alpha">Block A</div>
<div class="grid_6">Block B</div>
<div class="grid_3 omega">Block D</div>
<div class="grid_6 alpha">Block A</div>
<div class="grid_3">Block B</div>
<div class="grid_3 omega">Block D</div>
<div class="grid_11 alpha">Block A</div>
<div class="grid_1 omega">Block D</div>
<h1>grid-960-12 3time grid_4</h1>
<div class="container_12">
<div class="grid_4 alpha">Block A</div>
<div class="grid_4">Block B</div>
<div class="grid_4 omega">Block C</div>
<div class="ui-grid-a">
<div class="ui-block-a"><strong>I'm Block A</strong> and text inside will wrap</div>
<div class="ui-block-b"><strong>I'm Block B</strong> and text inside will wrap</div>
<div class="ui-grid-b">
<div class="ui-block-a">Block A</div>
<div class="ui-block-b">Block B</div>
<div class="ui-block-c">Block C</div>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->
Something went wrong with that request. Please try again.