Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

HTML

              
                <!-- column -->
<div class="row">
	<div class="column"><span>12</span></div>
</div>

<!-- small- -->
<div class="row">
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- small- -->
<div class="row">
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- small- -->
<div class="row">
	<div class="column small-1"><span>1</span></div>
	<div class="column small-2"><span>2</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-3"><span>3</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- small- and medium- and large- -->
<div class="row">
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-4 large-6"><span>1, 4, 6</span></div>
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
	<div class="column small-1 medium-6 large-6"><span>1, 6, 6</span></div>
</div>

<!-- -offset- -->
<div class="row">
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1 small-offset-1"><span>1 (+1)</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1 small-offset-3"><span>1 (+3)</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- hide-on- and show-on- -->
<div class="row">
	<div class="column small-6 hide-on-small show-on-large"><span>6</span></div>
	<div class="column small-2 hide-on-large"><span>2</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-1 hide-on-large"><span>1</span></div>
	<div class="column small-2 hide-on-large"><span>2</span></div>
	<div class="column small-6 hide-on-small show-on-large"><span>6</span></div>
</div>

<!-- hide-on- and show-on- -->
<div class="row hide-on-small show-on-large">
	<div class="column"><span>12</span></div>
</div>

<!-- nested row -->
<div class="row">
	<div class="column small-4">
		<div class="row">
			<div class="column small-6"><span>6</span></div>
			<div class="column small-6"><span>6</span></div>
		</div>
	</div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- -push- -->
<div class="row">
	<div class="column small-10 small-push-2"><span>10</span></div>
	<div class="column small-2 small-pull-10"><span>2</span></div>
</div>

<!-- top-on- -->
<div class="row top-on-small">
	<div class="column small-1"><span>1<br>1<br>1<br>1<br>1</span></div>
	<div class="column small-2"><span>2</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-3"><span>3</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- middle-on- -->
<div class="row middle-on-small">
	<div class="column small-1"><span>1<br>1<br>1<br>1<br>1</span></div>
	<div class="column small-2"><span>2</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-3"><span>3</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- bottom-on- -->
<div class="row bottom-on-small">
	<div class="column small-1"><span>1<br>1<br>1<br>1<br>1</span></div>
	<div class="column small-2"><span>2</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-3"><span>3</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-1"><span>1</span></div>
</div>

<!-- rtl-on- -->
<div class="row rtl-on-medium">
	<div class="column small-6"><span>6<br>6<br>6<br>6<br>6</span></div>
	<div class="column small-6"><span>6</span></div>
</div>

<!-- left-on- -->
<div class="row left-on-small">
	<div class="column small-6"><span>6</span></div>
</div>

<!-- center-on- -->
<div class="row center-on-small">
	<div class="column small-6"><span>6</span></div>
</div>

<!-- center-on- and nested row -->
<div class="row center-on-small">
	<div class="column small-6">
		<div class="row">
			<div class="column small-auto"><span>auto</span></div>
			<div class="column small-4"><span>4</span></div>
		</div>
	</div>
</div>

<!-- right-on- -->
<div class="row right-on-small">
	<div class="column small-6"><span>6</span></div>
</div>

<!-- around-on- -->
<div class="row around-on-small">
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4"><span>4</span></div>
</div>

<!-- around-on- -->
<div class="row around-on-small">
	<div class="column small-12"><span>12</span></div>
	<div class="column small-4"><span>4</span></div>
</div>

<!-- between-on- -->
<div class="row between-on-small">
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4"><span>4</span></div>
</div>

<!-- between-on- -->
<div class="row between-on-small">
	<div class="column small-12"><span>12</span></div>
	<div class="column small-4"><span>4</span></div>
</div>

<!-- small-auto -->
<div class="row">
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
</div>

<!-- small- and small-auto -->
<div class="row">
	<div class="column small-4"><span>4</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-auto"><span>auto</span></div>
</div>

<!-- small- and medium-auto -->
<div class="row">
	<div class="column small-12 medium-auto"><span>12, auto</span></div>
	<div class="column small-12 medium-auto"><span>12, auto</span></div>
</div>

<!-- small-auto and large-6 -->
<div class="row">
	<div class="column small-auto large-4"><span>auto, 4</span></div>
	<div class="column small-auto large-8"><span>auto, 8</span></div>
</div>

<!-- small-auto and small-1 -->
<div class="row">
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-auto"><span>auto</span></div>
	<div class="column small-1"><span>1</span></div>
	<div class="column small-auto"><span>auto</span></div>
</div>

<!-- column, small- and small-auto -->
<div class="row">
	<div class="column"><span>12</span></div>
	<div class="column small-4"><span>4</span></div>
	<div class="column small-auto"><span>auto</span></div>
</div>

<!-- small-auto and hide-on- -->
<div class="row">
	<div class="column small-auto"><span>auto</span></div>
	<div class="column hide-on-medium small-8"><span>8</span></div>
</div>

<!-- first-on- -->
<div class="row between-on-small">
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4 first-on-small"><span>4 (last to first)</span></div>
</div>

<!-- last-on- -->
<div class="row between-on-small">
	<div class="column small-4 last-on-small"><span>4 (first to last)</span></div>
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4"><span>4</span></div>
</div>

<!-- first-on-, last-on- and origin-on- -->
<div class="row">
	<div class="column small-4 last-on-small"><span>6 (first)</span></div>
	<div class="column small-4"><span>4</span></div>
	<div class="column small-4 first-on-small origin-on-medium"><span>6 (last)</span></div>
</div>
              
            
!

CSS

              
                html {
	width: 100%;
	height: 100%;
	font-family: sans-serif;
}

body {
	min-height: 100%;
	margin: 0;
}

.row {
	background: rgba(67, 147, 230, .2);
	margin-bottom: 2em;
}

.row .row {
	margin-bottom: 0;
}

.column {
	background: rgba(67, 147, 230, .2);
}

span {
	display: block;
	width: 100%;
	padding: 1rem 0;
	text-align: center;
	color: white;
	background: rgba(67, 147, 230, 1);
}
              
            
!

JS

              
                
              
            
!
999px

Console