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

              
                I wrote about <a href="https://getbutterfly.com/how-and-why-i-removed-ie11-support-from-our-product/">optimising page load speeds</a> here.

<div class="heading headingh">This is a hero heading</div>
<div class="heading heading1">This is a main heading</div>
<div class="heading">This is a secondary heading</div>
<div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
              
            
!

CSS

              
                body {
    font-family: "Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", "Times","Source Serif Pro", serif;
    font-size: 19px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-smooth: always;
    font-variant: discretionary-ligatures;

    line-height: 1.5;
    color: #323648;
    background-color: #ffffff;
}


.heading {
    font-size: 48px;
    font-size: 32px;
    line-height: 2;
    letter-spacing: -1px;
    line-height: 1;
    margin: 48px 0;
    font-weight: 300;
    color: #c4104d;
    position: relative;
}

.heading1 {
    font-size: 48px;
    color: #323648;
}

.headingh {
    font-size: 64px;
    color: #000000;
}

              
            
!

JS

              
                
              
            
!
999px

Console