Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
89 lines (62 sloc) 3.01 KB
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/designGrid.css">
<header role="banner">
<p class="tagline">Grids 2.0 — A fluid grid-tool for responsive designs.</p>
<div role="main">
<p>designGrid was born to address the need for a tool, that can help you when you're designing websites with fluid grids. Such tool, at the time being doesn't exist, and i needed one now! designGrid is not a grid framework! designGrid is a tool to help you make sure the different elements of your design aligns nicely with the grid. <a href="">You can read about the background to the project here</a>.</p>
<p>You can get the code from Github, either by <a href="">downloading a .zip-file</a> or by cloning the repository, like so:</p>
<p><code>$ git clone</code></p>
<p>designGrid comes with a stylesheet and a javascript file. To get started, <a href="">dowload the project from GitHub</a>, and then include the files in your project, like this:</p>
<div>Add this line inside your <code>&lt;head&gt;</code></div>
<p><code>&lt;link rel="stylesheet" href="path/to/css/designGrid.css"&gt;</code></p>
<div>And this one before <code>&lt;/body&gt;</code></div>
<p><code>&lt;script src="path/to/js/designGrid.js"&gt;&lt;/script&gt;</code></p>
<p>Or you can just copy-and-paste the code directly into your current stylesheet and javascript files.</p>
<h3><label for="css">CSS:</label></h3>
<textarea id="css" readonly rows="24" cols="80">
<?php echo file_get_contents('css/designGrid.css'); ?>
<h3><label for="js">JS:</label></h3>
<textarea id="js" readonly rows="24" cols="80">
<?php echo file_get_contents('js/designGrid.js'); ?>
<p>Now, all that you need to do is call designGrid's <code>init()</code> method, and you're set!</p>
<p>Press <kdb>g</kdb> to toggle the grid on/off.</p>
<p>By the default there are 4 columns set, you can customize this by setting <code>column_count</code> to whatever value your design require.</p>
<code>column_count: 6</code>
<p>You'll also need to change the css so that your columns and gutters uses the right widths. Then you're ready to go!</p>
<h2>Browser support</h2>
<p>designGrid is tested and is working in the following browsers:</p>
<li>Chrome 18</li>
<li>Firefox 11</li>
<li>Safari 5</li>
<li>Opera 11</li>
<footer role="contentinfo">
<small>This project was brought to you by: <a href="">Carl Räfting</a>.</small>
<script src="js/designGrid.js"></script>
<script src="js/global.js"></script>
Something went wrong with that request. Please try again.