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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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="container">  
  <div class="element">
    <p class="first">My font family name is "Dekko" and I fall back to a cursive generic font.</p>
    <p class="second">I have been given a list of font family names, the first one in the list is an invalid name, so I fall back to "Times New Roman".</p>
    <p class="third">My font family is "Courier" and falls back to a monospace generic font.</p>    


                @import url('');

* {
  box-sizing: border-box;

body {
  background-color: #f6efe7;
  color: #555;
  font-size: 1.1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

.container {
  margin: 40px auto 0;
  width: 90%;

.element {
  background: #fff;
  padding: 1em;

.element p {
  font-size: 1.25em;
  background: #3c5567;
  color: white;
  padding: 1em;
  margin: 1em;

.first {
  font-family: 'Indie Flower', cursive;

.second {
  font-family: wrong name, "Times New Roman", serif;

.third {
  font-family: Courier, monospace;