Pen Settings



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


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.


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.


                <button id="print-styles-toggle">
  Toggle Fake Print Styles

<div id="page-wrap">
  <header class="main-header">
    <h1>Title of Site</h1>
  <section class="content">
    <main class="main-content">
      <article class="article print-me">
        <h2>This article area is the only thing that should print</h2>
        <p>Lorem ipsum dolor sit amet, <em>consectetur</em> adipisicing elit. Temporibus quo laborum fugiat hic eaque tenetur voluptate impedit aliquam asperiores labore nisi, deleniti, mollitia ipsa harum sequi aliquid voluptatem ducimus dolorem!</p>
    <aside class="sidebar">
      <div class="module">
        <h3>Sidebar Stuff</h3>
        <p>Blah blah blah.</p>
      <!--<div class="module print-me">
        <h3>This one should print</h3>
        <p>Blah blah blah.</p>
  <footer class="main-footer">
    &copy;2015 cool.


                .fake-print-state * {
  display: none;
.fake-print-state .print-me,
.fake-print-state .print-me * {
  display: block;
.js-print-me {
  display: block;

* {
  box-sizing: border-box;
body {
  padding: 20px;
  background: #999;
h1, h2, h3, h4, h5, h6 {
  margin: 0;

.main-footer {
  padding: 50px;
  text-align: center;
  background: #333;
  color: white;

.content {
  overflow: hidden;
.main-content {
  float: left;
  width: 70%;
  padding-right: 25px;

.article {
  background: white;
  padding: 20px;

.sidebar {
  float: right;
  width: 30%;
.module {
  background: #eee;
  padding: 10px;
  margin: 0 0 25px 0;

.main-footer {
  padding: 25px;


                $("#print-styles-toggle").on("click", function() {
  $(".js-print-me, .js-dont-print").removeClass("js-print-me js-dont-print");