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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                Mozilla<br>
331 E. Evelyn Avenue<br>
Mountain View, CA<br>
94041<br>
USA<br>

<!-- can also be coded this way -->
<!-- the pre element preserves white space -->
<pre>
Mozilla 
331 E. Evelyn Avenue
Mountain View, CA 
94041 
USA 
</pre>

<!-- or coded this way, using white-space: pre-line; in CSS -->
<p class="address">
  Mozilla
  331 E. Evelyn Avenue
  Mountain View, CA
  94041
  USA
</p>

<p class="poem">
  In Flanders Fields
  BY JOHN MCCRAE

  In Flanders fields the poppies blow
  Between the crosses, row on row,
  That mark our place; and in the sky
  The larks, still bravely singing, fly
  Scarce heard amid the guns below.

  We are the Dead. Short days ago
  We lived, felt dawn, saw sunset glow,
  Loved and were loved, and now we lie,
  In Flanders fields.

  Take up our quarrel with the foe:
  To you from failing hands we throw
  The torch; be yours to hold it high.
  If ye break faith with us who die
  We shall not sleep, though poppies grow
  In Flanders fields.
</p>
              
            
!

CSS

              
                body,
pre {
  font-family: Arial, sans-serif;
}

.address,
.poem {
  white-space: pre-line;
}

              
            
!

JS

              
                
              
            
!
999px

Console