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

              
                <h1>Durham Ipsum</h1>
<p>The eleanor morehead hills american tobacco upcycled five points cupcakes brewery beer blues tobacco, sodu carolina theatre bicycle basketball coworking locavore north east luewwd, art of cool coffee vest hope valley liberty beard mount moriah bragtown. Mountain goats science and math coffee craft cocktail city of medicine rolling hills listserv, diamondview nasher tw alexander fixie skate park 15-501 triangle localista, local basketball bullcity old five points eagles.</p>

<p>Erwin square blues festival listserv alston avenue people's pharmacy edgemont one forty seven, innovation big green wall blues foodie alston avenue. Fixie doughman eagles chapel hill street durham d-town watts-hillandale southpoint, bull wunc southside chapel drive merge records cupcakes.</p>

              
            
!

CSS

              
                body {
  font-family: sans-serif;
}

body.fonts-loaded {
  font-family: 'Open Sans', sans-serif;
}

.fonts-loaded h1 {
  font-family: 'Open Sans Condensed';
}
              
            
!

JS

              
                var fontFamilies = {
  'Open Sans': [
    {
      weight: 400
    },
    {
      weight: 700
    }
  ],
  'Open Sans Condensed': [
    {
      weight: 700
    }
  ]
}

var fontObservers = []; Object.keys(fontFamilies).forEach(function(family) {
  fontObservers.push(fontFamilies[family].map(function(config) {
    return new FontFaceObserver(family, config).check()
  }));
});

Promise.all(fontObservers)
  .then(function() {
    document.body.classList.add('fonts-loaded');
  }, function() {
    console.log('Fonts not available');
  });
              
            
!
999px

Console