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

              
                <!-- Check the HTML settings. We load the TypeKit fonts there -->
<article>
  <p>SpaceX’s CRS-11 launch on Saturday was a success, bringing a Dragon spacecraft loaded down with nearly 6,000 lbs of supplies and research equipment on board to orbit. The twist was that SpaceX already sent this Dragon capsule up to resupply the International Space Station once before—back in September 2014, when it carried cargo to the ISS prior to being recovered and refurbished post-mission.</p>
  <p>The successful relaunch of a recycled Dragon is another historic milestone for SpaceX, which is aiming to reuse various parts of its launch and spacecraft equipment in order to help lower the cost of getting stuff to space. This is key to its aim of making launching a lucrative and profitable business, and also to it achieving its goal of flying missions, including crewed operations, to Mars.</p>
</article>

<footer><h1>BETTER WEB TYPOGRAPHY FOR <span>A&nbsp;BETTER&nbsp;WEB</span></h1><p>A book by Matej Latin—Get yours at <a href="https://betterwebtype.com/book" target="_blank">betterwebtype.com</a></p></footer>
              
            
!

CSS

              
                // The SCSS is enabled as the CSS preprocessor

html {
  padding: 2% 5%;
  font-size: 100%;
  line-height: 1.4;
  color: #333;
  
  @media screen and (min-width: 48em){
    font-size: 112.5%;
    line-height: 1.45;
  }
}

article p {
  font-family: "ff-meta-serif-web-pro", Georgia, serif;
  // font-family: "ff-more-web-pro", Georgia, serif;
  // font-family: "rooney-web", Georgia, serif;
  max-width: 33em;
}

/* End of example */

footer {
  margin-top: 4em;
}

footer h1 {
  font-size: 24px;
  font-family: "acumin-pro-extra-condensed",sans-serif;
  margin-bottom: 0;
}

footer span {
  color: #F15D64;
}

footer p {
  font-size: 16px;
  font-family: Georgia, serif;
}
              
            
!

JS

              
                
              
            
!
999px

Console