one-whole column

one-half column

one-half column

one-half column split

one-half column split

two-thirds column

one-fourth column

one-fourth column

one-fourth column

one-fourth column

one-fourth column split

one-fourth column split

one-fourth column split

one-fourth column split

one-fourth column

three-fourths column

one-fourth column

one-half column

one-fourth column

one-fifth column

one-fifth column

one-fifth column

one-fifth column

one-fifth column

one-fifth column

two-fifths column

two-fifths column

one-fifth column

three-fifths column

one-fifth column

one-fifth column

four-fifths column

one-sixth column

one-sixth column

one-sixth column

one-sixth column

one-sixth column

one-sixth column

one-seventh column

one-seventh column

one-seventh column

one-seventh column

one-seventh column

one-seventh column

one-seventh column

one-eighth column

one-eighth column

one-eighth column

one-eighth column

one-eighth column

one-eighth column

one-eighth column

one-eighth column

one-eighth column split

one-eighth column split

one-eighth column split

one-eighth column split

one-eighth column split

one-eighth column split

one-eighth column split

one-eighth column split

1

2

3

4

5

6

7

8

9

10

11

12

1

11

2

10

3

9

4

8

5

7

6

6

7

5

8

4

9

3

10

2

11

1

12

1

off 1

off 2

off 3

off 4

off 5

off 6

off 7

off 8

off 9

off 10

off 11

1

off 10

1

off 9

1

off 8

1

off 7

1

off 6

1

off 5

1

off 4

1

off 3

1

off 2

1

off 1

1/4 column

1/4 column offset by 1/2

1/5 column offset by 1/5

1/5 column offset by 1/5

1/2 column offset by 1/4

eight-twelths column offset-by-two-twelths

ten-twelths column offset-by-one-twelth

ten-twelths column centered

eight-twelths column centered

one-half column centered

What is this?

Code Examples

EXAMPLE HTML:

<section>
    <div class="row">
        <div class="one column">
            <p>one column</p>
        </div>
    </div>
</section>

<section>
    <div class="row">
        <div class="one-half column">
            <p>one-half column</p>
        </div>
        <div class="one-half column">
            <p>one-half column</p>
        </div>
    </div>
</section>

<section>
    <div class="row">
        <div class="one-third column">
            <p>one-third column.</p>
        </div>
        <div class="one-third column">
            <p>one-third column</p>
        </div>
        <div class="one-third column">
            <p>one-third column</p>
        </div>
    </div>
</section>

<section>
    <div class="row">
        <div class="one-fourth column">
            <p>one-fourth column</p>
        </div>
        <div class="one-fourth column">
            <p>one-fourth column</p>
        </div>
        <div class="one-fourth column">
            <p>one-fourth column</p>
        </div>
        <div class="one-fourth column">
            <p>one-fourth column</p>
        </div>
    </div>
</section>

<section>
    <div class="row">
        <div class="one-fifth column">
            <p>one-fifth column</p>
        </div>
        <div class="one-fifth column">
            <p>one-fifth column</p>
        </div>
        <div class="one-fifth column">
            <p>one-fifth column</p>
        </div>
        <div class="one-fifth column">
            <p>one-fifth column</p>
        </div>
        <div class="one-fifth column">
            <p>one-fifth column</p>
        </div>
    </div>
</section>                  
                    

EXAMPLE CSS:

/* centered container */
.container {
	width: 98%;
	padding: 0 1%;
	margin: 0 auto;
}

.row {
	margin: 1em 0;	
}

.column {
	float: left;
	margin: 0 0 0 2%; /* 2% gutter */	
}

.column:first-child {
	margin: 0;	
}

.one.column { width: 100%; }
.one-half.column { width: 49%; } 
.one-third.column {	width: 32%; }
.one-fourth.column { width: 23.5%; } 
.one-fifth.column {	width: 18.4%; }

                    

3 Media Queries:

/* Desktop */
@media (min-width: 1200px) {
	/* FIXED WIDTH */
    .container { width: 1200px; } 
}
 
/* Tablet */
@media (min-width:768px) and (max-width:1199px) {
	/* FLUID w/ column (default) */
}

/* Mobile */
@media (max-width: 767px) {
	/* FLUID w/ all columns stacked vertically */
	.row {
		margin: 0;	
	}
	.column, .column:first-child {
		margin: .25em 0;
	}
	.one.column,
	.one-half.column,
	.one-third.column,
	.one-fourth.column,
	.one-fifth.column {	width: 100%; }
}   
                    

Clearfix on Rows:

.row:after {
  content: "";
  display: table;
  clear: both;
}