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

              
                <main>
  <article>
    <h2>Article One</h2>
    <p>Christmas tree chill cookie, ribbon jingle bells evergreen partridge eggnog stocking stuffers nutcracker chilly sugarplum bough plum pudding. Festive icicle poinsettia gift list Vixen goose Santas workshop greetings, chetnuts gold reindeer partridge fireplace. Cookie Christmas Christmas card happy Frosty the Snowman jolly Noel, frosty nutcracker holiday candy cane Tiny Tim snow. Santa stocking holiday Rudolph fir fruitcake bow chestnuts.</p>
  </article>
  <article>
    <h2>Article Two</h2>
    <p>Celebrate sleigh wassail Christmas Eve mittens gingerbread snow. Celebrate wreath gingerbread gift nice scarf guest calendar, yule wrapping paper toys angel. Hug Comet red holiday chestnuts Santas workshop guest winter. Season goose hot cocoa box carolers blizzard reindeer nice. Party candy cane Prancer sugarplum holly, eggnog poinsettia elf candy cane Dasher.</p>
  </article>
  
</main>
              
            
!

CSS

              
                main {
  display: grid;
  grid-template-columns: [main-start] 1fr [col-start] 3fr [col-end] 1fr [main-end];
}

article {
  grid-column: main;
  display: grid;
  grid-template-columns: subgrid;
  background-color: rgba(255,255,255,.9);
  margin: 0 0 1em 0;
}

article > * {
  grid-column: col;
}

body {
  background-image: url("https://assets.codepen.io/12005/background-g016c9fcb2_1920.jpg");
  font: 1.1em/1.3 sans-serif;
}
              
            
!

JS

              
                
              
            
!
999px

Console