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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <h1>Bird on the Wire</h1>
<h2>Lyrics by Leonard Cohen</h2>
<blockquote>
<p>Like a bird on the wire,<br>like a drunk in a midnight choir<br>
I have tried in my way to be free.<br>
Like a fish on a hook,<br>like a knight from some old fashioned book<br>
I have saved all my ribbons for thee.<br>

<p>If I, been unkind,<br>
I hope that you can just let it, let it go by.<br>
If I, have been untrue<br>
I hope you know it was never to you.

<p>Like a bird free<br>
there's a bird free

<p>Like a baby, stillborn,<br>like a beast with his horn<br>
I have torn everyone who reached out for me.<br>
But I swear by this song<br>
  and by all that I have done wrong<br>
I will make it all up to thee.

<p>Don't cry no more don't cry<br>
it's completed, oh it's finished<br>
it's been faithful

<p>Like a bird free<br>
there's a bird free<br>
Like a bird free<br>
there's a bird free

<p>Like a bird free<br>
there's a bird free<br>
Like a bird free<br>
there's a bird free

<p>Like a bird (free) on the wire, (free)<br>
like a drunk (free) in a midnight choir (free)<br>
don't cry (free) don't cry (free)<br>
Like a bird free (free) free
</blockquote>

            
          
!

CSS

            
              body { 
  font-family: Georgia, Baskerville, serif; 
  font-size: 1.4rem; 
  line-height: 1.7;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/birds-on-wire.svg), url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/wire.svg);
  background-size: contain;
  background-repeat: no-repeat, repeat-y;
}
blockquote { 
  margin-left: 50%;
  @media all and (max-width: 700px) {
    margin-left: 10%;
  }
}
h1, h2 { font-weight: 400; 
  text-align: center;
}
h1 { margin-bottom: 0; }
h2 { font-size: 1.5rem; }
            
          
!

JS

            
              
            
          
!
999px

Console