Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <figure class="quote">
 <blockquote>
  <p>
    The truth may be puzzling. It may take some work to grapple with.
    It may be counterintuitive. It may contradict deeply held
    prejudices. It may not be consonant with what we desperately want to
    be true. But our preferences do not determine what's true. We have a
    method, and that method helps us to reach not absolute truth, only
    asymptotic approaches to the truth — never there, just closer
    and closer, always finding vast new oceans of undiscovered
    possibilities. Cleverly designed experiments are the key.
  </p>
 </blockquote>
 <figcaption>
   Carl Sagan, in <cite>Wonder and Skepticism</cite>, from
   the <cite>Skeptical Enquirer</cite> Volume 19, Issue 1 (January-February
   1995)
  </figcaption>
</figure>
<p>
  Rest of the text...
</p>
              
            
!

CSS

              
                figure {
  margin: 0;
  max-width: 35em;
}
blockquote {
  border-left: solid 4px #c2c2c2;
  margin: 0;
  padding-left: 1.5em;
}
blockquote + figcaption {
  margin: 0 0 2rem auto;
  width: 80%;
}

              
            
!

JS

              
                
              
            
!
999px

Console