Congratulations!

You have generated a 504px 960.gs grid system | 6 columns ~ margin left: 20px ~ margin right: 10px

The grid result is shown below (or a full screen preview)

Follow these instructions to get started:

  1. Download the css/xhtml & template files
  2. Include the file "504_6_20_10.css" in the <head> of the HTML page.
  3. You may also use the included reset.css and text.css files, or opt to leave them out.

[ Click here for more detailed installation instructions ]

960.gs quick statistics

Total grid systems generated: 1693523

Unique grid systems generated: 26321

960.gs generator version

Version 1.04 - change history

Generated grid systems are based on the 960.gs by Nathan Smith.

960.gs tutorials

960.gs generator

 

Source code 504px, 6 columns ~ margin left: 20px ~ margin right: 10px

CSS link code

<link rel="stylesheet" type="text/css" href="http://gridsystemgenerator.com/download/gs01/uncompressed/css/504_6_20_10.css">

CSS code

/*
504px grid system ~ Core CSS.
6 Columns ~ Margin left: 20px ~ Margin right: 10px

Based on the 960.gs grid system - http://960.gs/
by Nathan Smith

Created by the Grid System Generator - v1.04
Learn more ~ http://www.gridsystemgenerator.com/
*/

/*
Forces backgrounds to span full width,
even if there is horizontal scrolling.
Increase this if your layout is wider.

Note: IE6 works fine without this fix.
*/
body {
	min-width: 960px;
}

/* =Containers
--------------------------------------------------------------------------------*/
.container_6
{
	margin-left: auto;
	margin-right: auto;
	width: 504px;
}

/* =Grid >> Global
--------------------------------------------------------------------------------*/
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
	display: inline;
	float: left;
	margin-left: 20px;
	margin-right: 10px;
}

.push_1, .pull_1,
.push_2, .pull_2,
.push_3, .pull_3,
.push_4, .pull_4,
.push_5, .pull_5 {
	position: relative;
}

/* =Grid >> Children (Alpha ~ First, Omega ~ Last)
--------------------------------------------------------------------------------*/
.alpha {margin-left: 0;}
.omega {margin-right: 0;}

/* =Grid >> 6 Columns
--------------------------------------------------------------------------------*/
.container_6 .grid_1 {width: 54px;}
.container_6 .grid_2 {width: 138px;}
.container_6 .grid_3 {width: 222px;}
.container_6 .grid_4 {width: 306px;}
.container_6 .grid_5 {width: 390px;}
.container_6 .grid_6 {width: 474px;}

/* =Prefix Extra Space >> 6 Columns
--------------------------------------------------------------------------------*/
.container_6 .prefix_1 {padding-left: 84px;}
.container_6 .prefix_2 {padding-left: 168px;}
.container_6 .prefix_3 {padding-left: 252px;}
.container_6 .prefix_4 {padding-left: 336px;}
.container_6 .prefix_5 {padding-left: 420px;}

/* =Suffix Extra Space >> 6 Columns
--------------------------------------------------------------------------------*/
.container_6 .suffix_1 {padding-right: 84px;}
.container_6 .suffix_2 {padding-right: 168px;}
.container_6 .suffix_3 {padding-right: 252px;}
.container_6 .suffix_4 {padding-right: 336px;}
.container_6 .suffix_5 {padding-right: 420px;}

/* `Push Space >> 6 Columns
--------------------------------------------------------------------------------*/
.container_6 .push_1 {left: 84px;}
.container_6 .push_2 {left: 168px;}
.container_6 .push_3 {left: 252px;}
.container_6 .push_4 {left: 336px;}
.container_6 .push_5 {left: 420px;}

/* `Pull Space >> 6 Columns
--------------------------------------------------------------------------------*/
.container_6 .pull_1 {left: -84px;}
.container_6 .pull_2 {left: -168px;}
.container_6 .pull_3 {left: -252px;}
.container_6 .pull_4 {left: -336px;}
.container_6 .pull_5 {left: -420px;}

/* `Clear Floated Elements
----------------------------------------------------------------------------------------------------*/
/* http://sonspring.com/journal/clearing-floats */
.clear {
	clear: both;
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}

/* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
.clearfix:before,
.clearfix:after {
	content: "\0020";
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}
.clearfix:after {
	clear: both;
}
/*
The following zoom:1 rule is specifically for IE6 + IE7.
Move to separate stylesheet if invalid CSS is a problem.
*/
.clearfix {
	zoom: 1;
}

HTML code

<div class="container_6">
  <h1><a href="http://www.gridsystemgenerator.com/gs01.php?GridWidth=504&amp;GridColumns=6&amp;GridMarginLeft=20&amp;GridMarginRight=10">504px valid css/xhtml 960.gs grid system</a></h1>
  <h2>6 columns ~ margin left: 20px ~ margin right: 10px</h2>
    <div class="grid_6"><p>474px</p></div>
    <!-- end .grid_6 -->
    <div class="clear">&nbsp;</div>
  <div class="grid_1">
    <p>54px</p>
  </div>
  <!-- end .grid_1 -->
  <div class="grid_5">
    <p>390px</p>
  </div>
  <!-- end .grid_5 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_2">
    <p>138px</p>
  </div>
  <!-- end .grid_2 -->
  <div class="grid_4">
    <p>306px</p>
  </div>
  <!-- end .grid_4 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_3">
    <p>222px</p>
  </div>
  <!-- end .grid_3 -->
  <div class="grid_3">
    <p>222px</p>
  </div>
  <!-- end .grid_3 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_4">
    <p>306px</p>
  </div>
  <!-- end .grid_4 -->
  <div class="grid_2">
    <p>138px</p>
  </div>
  <!-- end .grid_2 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_5">
    <p>390px</p>
  </div>
  <!-- end .grid_5 -->
  <div class="grid_1">
    <p>54px</p>
  </div>
  <!-- end .grid_1 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 suffix_5">
    <p>54px</p>
  </div>
  <!-- end .grid_1.suffix_5 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 prefix_1 suffix_4">
    <p>54px</p>
  </div>
  <!-- end .grid_1 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 prefix_2 suffix_3">
    <p>54px</p>
  </div>
  <!-- end .grid_2 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 prefix_3 suffix_2">
    <p>54px</p>
  </div>
  <!-- end .grid_3 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 prefix_4 suffix_1">
    <p>54px</p>
  </div>
  <!-- end .grid_4 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 prefix_5 suffix_0">
    <p>54px</p>
  </div>
  <!-- end .grid_5 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_1 push_5">
    <p>Push (54px)</p>
  </div>
  <!-- end .grid_1 .push_5 -->
  <div class="grid_5 pull_1">
    <p>Pull (390px)</p>
  </div>
  <!-- end .grid_5.pull_1 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_2 push_4">
    <p>Push (138px)</p>
  </div>
  <!-- end .grid_2 .push_4 -->
  <div class="grid_4 pull_2">
    <p>Pull (306px)</p>
  </div>
  <!-- end .grid_4.pull_2 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_3 push_3">
    <p>Push (222px)</p>
  </div>
  <!-- end .grid_3 .push_3 -->
  <div class="grid_3 pull_3">
    <p>Pull (222px)</p>
  </div>
  <!-- end .grid_3.pull_3 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_4 push_2">
    <p>Push (306px)</p>
  </div>
  <!-- end .grid_4 .push_2 -->
  <div class="grid_2 pull_4">
    <p>Pull (138px)</p>
  </div>
  <!-- end .grid_2.pull_4 -->
  <div class="clear">&nbsp;</div>
  <div class="grid_5 push_1">
    <p>Push (390px)</p>
  </div>
  <!-- end .grid_5 .push_1 -->
  <div class="grid_1 pull_5">
    <p>Pull (54px)</p>
  </div>
  <!-- end .grid_1.pull_5 -->
  <div class="clear">&nbsp;</div>
    <div class="grid_6">
      <p>This valid css/xhtml grid system is created by the <a href="http://www.gridsystemgenerator.com">Grid System Generator</a><br />
      Based on the 960.gs grid system.<br />
      <a href="http://validator.w3.org/check/referer">XHTML</a> - <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></p>
    </div>
    <!-- end .grid_6 -->
    <div class="clear">&nbsp;</div>
</div>
<!-- end .container_6 -->

Reset.css

/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

Text.css

/* `Basic HTML
----------------------------------------------------------------------------------------------------*/

body {
	font: 13px/1.5 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
}

a:focus {
	outline: 1px dotted;
}

hr {
	border: 0 #ccc solid;
	border-top-width: 1px;
	clear: both;
	height: 0;
}

/* `Headings
----------------------------------------------------------------------------------------------------*/

h1 {
	font-size: 25px;
}

h2 {
	font-size: 23px;
}

h3 {
	font-size: 21px;
}

h4 {
	font-size: 19px;
}

h5 {
	font-size: 17px;
}

h6 {
	font-size: 15px;
}

/* `Spacing
----------------------------------------------------------------------------------------------------*/

ol {
	list-style: decimal;
}

ul {
	list-style: disc;
}

li {
	margin-left: 30px;
}

p,
dl,
hr,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
ul,
pre,
table,
address,
fieldset {
	margin-bottom: 20px;
}