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 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

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

              
                <article>
  <blockquote>
    <p>
    “So be cheery, my lads, let your hearts never fail, While the bold harpooneer is striking the whale!” —NANTUCKET SONG
    </p>
  </blockquote>
  <h1>CHAPTER 1. Loomings.</h1>
  <p>
    Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and...
  </p>
</article>
              
            
!

CSS

              
                @font-face {
  font-family: 'Literata';
  src: url("https://s3.eu-west-2.amazonaws.com/static-electricity/fonts/Literata-Regular.woff");
}

@font-face {
  font-family: 'Literata Bold';
  src: url("https://s3.eu-west-2.amazonaws.com/static-electricity/fonts/Literata-Bold.woff");
}

body {
  background: antiquewhite;
  font-family: 'Literata';
}

article h1 {
  margin-top: 45px;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Literata Bold';
}

::selection {
  background-color: yellow;
}

blockquote {
  margin: 10px;
}

article p {
  font-size: 11pt;
  margin: 0 20px;
  line-height: 1.6;
}

@media(min-width: 520px) {
  article p {
    margin: 0 40px;
    line-height: 1.7;
  }
}

@media(min-width: 610px) {
  article p {
    font-size: 12pt;
  }
}

@media(min-width: 650px) {
  article p {
    font-size: 13pt;
  }
}

@media(min-width: 720px) {
  article p {
    font-size: 14pt;
  }
  
  article {
    margin: 0 auto;
    max-width: 700px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console