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.


<img src="" srcset=" 1x, 2x" alt="Photograph of a blurred waterfall in Iceland with a conical mountain behind it">
  <figcaption>Example of <code>Nx srcset</code> syntax: 196DPI+ screens will recieve the 2x image, regardless of display size; all others will recieve 1x version</figcaption>

<figure class="retina">
<img src="" srcset=" 1000w, 2000w" alt="Photograph of a tiny human figure in a red rainjacket drawfed by the scale of the Skógafoss waterfall in Iceland">
  <figcaption>Example of of <code>Nw srcset</code> syntax: viewports more than 2000 <em>device</em> pixels wide will recieve the 2x version; those under 1000 will recieve 1x.</figcaption>


                body { 
  background: #223; color: #fff; 
  font-family: Avenir, sans-serif;
figure { 
  width: 60%; margin: 0 auto;
  margin-bottom: 2rem; 
figure img { 
  width: 100%; 
  height: auto; 
  margin-bottom: 1rem;