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 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


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.


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.


                <div class="wrapper gw">
<header class="g one-whole  small-one-whole">
  Some Header Content, maybe a Logo or whatever.
<main class="g two-thirds  small-one-whole">
  Main Content with a bunch of articles.
    <h2>Article 1</h2>
    <h2>Article 2</h2>
    <h2>Article 3</h2>
    <h2>Article 4</h2>
    <h2>Article 5</h2>
<aside class="g one-third  small-one-whole">
  Sidebar with some more content
    <li><a href="#">Lorem</a></li>
    <li><a href="#">Ipsum</a></li>
    <li><a href="#">Dolor</a></li>
    <li><a href="#">sit</a></li>
    <li><a href="#">Amet</a></li>
  <footer class="g one-whole">
    I'm the Footer!


                @import "compass/css3";

/* standard reset */
* {
  @include box-sizing(border-box);

body {
  font:1rem/1.3 Arial, Helvetica, sans-serif;

/* the good ol'  wrapper to hold the whole page */
.wrapper {
width: 100%;
max-width: 60em;
margin: 0 auto;
ul, li {
  margin-left:.5em; /* moving the list so they're inside the sidebar */
/* a bit padding to all used elements */
header, main, sidebar {padding:1em;}

/* just colors to showcase the areas */
header {
  background: blue;

main {
  background: red;

aside {
  background: #ddd;

footer {