Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!DOCTYPE HTML>
<html lang="en">

		<meta charset="utf-8">
		<title>CSS Grid Layout - a flexible 960 grid</title>
	<h1 class="title">Flexible 960 Grid</h1>
	<div class="wrapper">
		<div class="box grid1">01</div>
		<div class="box grid2">02</div>
		<div class="box grid3">03</div>
		<div class="box grid4">04</div>
		<div class="box grid5">05</div>
		<div class="box grid6">06</div>
		<div class="box grid7">07</div>
		<div class="box grid8">08</div>
		<div class="box grid9">09</div>
		<div class="box grid10">10</div>
		<div class="box grid11">11</div>
		<div class="box grid12">12</div>
		<div class="box grid13">13</div>
		<div class="box grid14">14</div>
		<div class="box grid15">15</div>
		<div class="box grid16">16</div>

		<div class="box row2 colspan2 grid1">01</div>
		<div class="box row2 colspan2 grid3">02</div>
		<div class="box row2 colspan2 grid5">03</div>
		<div class="box row2 colspan2 grid7">04</div>
		<div class="box row2 colspan2 grid9">05</div>
		<div class="box row2 colspan2 grid11">06</div>
		<div class="box row2 colspan2 grid13">07</div>
		<div class="box row2 colspan2 grid15">08</div>	

		<div class="box row3 colspan3 grid1">01</div>
		<div class="box row3 colspan3 grid4">02</div>
		<div class="box row3 colspan3 grid7">03</div>
		<div class="box row3 colspan3 grid10">04</div>
		<div class="box row3 colspan4 grid13">05</div>

		<div class="box row4 colspan4 grid1">01</div>
		<div class="box row4 colspan4 grid5">02</div>
		<div class="box row4 colspan4 grid9">03</div>
		<div class="box row4 colspan4 grid13">04</div>

		<div class="box row5 colspan5 grid1">01</div>
		<div class="box row5 colspan5 grid6">02</div>
		<div class="box row5 colspan6 grid11">03</div>

		<div class="box row6 colspan6 grid1">01</div>
		<div class="box row6 colspan5 grid7">02</div>
		<div class="box row6 colspan5 grid12">03</div>

		<div class="box row7 colspan7 grid1">01</div>
		<div class="box row7 colspan5 grid8">02</div>
		<div class="box row7 colspan4 grid13">03</div>

		<div class="box row8 colspan8 grid1">01</div>
		<div class="box row8 colspan8 grid9">02</div>

		<div class="box grid1 row9">01</div>
		<div class="box grid2 row10">02</div>
		<div class="box grid3 row11">03</div>
		<div class="box grid4 row12">04</div>
		<div class="box grid5 row13">05</div>
		<div class="box grid6 row14">06</div>
		<div class="box grid7 row15">07</div>
		<div class="box grid8 row16">08</div>
		<div class="box grid9 row17">09</div>
		<div class="box grid10 row18">10</div>
		<div class="box grid11 row19">11</div>
		<div class="box grid12 row20">12</div>
		<div class="box grid13 row21">13</div>
		<div class="box grid14 row22">14</div>
		<div class="box grid15 row23">15</div>
		<div class="box grid16 row24">16</div>


                body {
	margin: 0;
	padding: 20px;
	background-color: #999;
	color: #fff;
	background-image: url("");
	font: 87.5%/1.4 HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia","Times New Roman",serif;
    font-weight: normal;
    padding: 0;
    margin: 0;

h1 {
    font-size: 328.571%;
    margin-bottom: 0.2em;

h1.title {
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);

h2 {
    font-size: 250%;
    margin-bottom: 0.2em;

h3 {
    font-size: 150%;
    margin-bottom: 0.2em;

p {
	padding: 0 0 1em 0;

.box {
    background-color: #ddd;
    padding: 10px 10px 1px;
    color: #444;

.wrapper {	 
  width: 90%;
  margin: 0 auto 0 auto;
  display: -ms-grid;
  -ms-grid-columns: 1fr (4.25fr 1fr)[16];
  -ms-grid-rows: (auto 20px)[24];

.grid1 {-ms-grid-column: 2;} 
.grid2 {-ms-grid-column: 4;} 
.grid3 {-ms-grid-column: 6;} 
.grid4 {-ms-grid-column: 8;} 
.grid5 {-ms-grid-column: 10;}
.grid6 {-ms-grid-column: 12;}
.grid7 {-ms-grid-column: 14;}
.grid8 {-ms-grid-column: 16;}
.grid9 {-ms-grid-column: 18;}
.grid10 {-ms-grid-column: 20;}
.grid11 {-ms-grid-column: 22;}
.grid12 {-ms-grid-column: 24;}
.grid13 {-ms-grid-column: 26;}
.grid14 {-ms-grid-column: 28;}
.grid15 {-ms-grid-column: 30;}
.grid16 {-ms-grid-column: 32;}

.row1 {-ms-grid-row:1;}
.row2 {-ms-grid-row:3;}
.row3 {-ms-grid-row:5;}
.row4 {-ms-grid-row:7;}
.row5 {-ms-grid-row:9;}
.row6 {-ms-grid-row:11;}
.row7 {-ms-grid-row:13;}
.row8 {-ms-grid-row:15;}
.row9 {-ms-grid-row:17;}
.row10 {-ms-grid-row:19;}
.row11 {-ms-grid-row:21;}
.row12 {-ms-grid-row:23;}
.row13 {-ms-grid-row:25;}
.row14 {-ms-grid-row:27;}
.row15 {-ms-grid-row:29;}
.row16 {-ms-grid-row:31;}
.row17 {-ms-grid-row:33;}
.row18 {-ms-grid-row:35;}
.row19 {-ms-grid-row:37;}
.row20 {-ms-grid-row:39;}
.row21 {-ms-grid-row:41;}
.row22 {-ms-grid-row:43;}
.row23 {-ms-grid-row:45;}
.row24 {-ms-grid-row:47;}

.colspan1 {-ms-grid-column-span:1;}
.colspan2 {-ms-grid-column-span:3;}
.colspan3 {-ms-grid-column-span:5;}
.colspan4 {-ms-grid-column-span:7;}
.colspan5 {-ms-grid-column-span:9;}
.colspan6 {-ms-grid-column-span:11;}
.colspan7 {-ms-grid-column-span:13;}
.colspan8 {-ms-grid-column-span:15;}
.colspan9 {-ms-grid-column-span:17;}
.colspan10 {-ms-grid-column-span:19;}
.colspan11 {-ms-grid-column-span:21;}
.colspan12 {-ms-grid-column-span:23;}
.colspan13 {-ms-grid-column-span:25;}
.colspan14 {-ms-grid-column-span:27;}
.colspan15 {-ms-grid-column-span:29;}
.colspan16 {-ms-grid-column-span:31;}