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

              
                <div class="container title">
  <h1>Boots of Spanish Leather</h1>
  <small>by Bob Dylan</small>
</div>

<div class="container">
<p>Oh, I'm sailin' away, my own true love<br>
I'm sailin' away in the morning<br>
Is there something I can send you from across the sea<br>
From the place that I'll be landing?</p>

<p>No, there's nothin' you can send me, my own true love<br>
There's nothin' I wish to be ownin'<br>
Just carry yourself back to me unspoiled<br>
From across that lonesome ocean<p>

<p>Oh, but I just thought you might want something fine<br>
Made of silver or of golden<br>
Either from the mountains of Madrid<br>
Or from the coast of Barcelona</p>

<p>But if I had the stars from the darkest night<br>
And the diamonds from the deepest ocean<br>
I'd forsake them all for your sweet kiss<br>
For that's all I'm wishin' to be ownin'</p>

<p>But I might be gone a long old time<br>
And it's only that I'm askin'<br>
Is there something I can send you to remember me by?<br>
  To make your time more easy-passin'</p>

<p>Oh, how can, how can you ask me again?<br>
It only brings me sorrow<br>
The same thing I want today<br>
  I would want again tomorrow</p>

<p>Oh, I got a letter on a lonesome day<br>
It was from her ship a-sailin'<br>
Saying I don't know when I'll be comin' back again<br>
  It depends on how I'm a-feelin'</p>

<p>If you, my love, must think that-a-way<br>
I'm sure your mind is roamin'<br>
I'm sure your heart is not with me<br>
  But with the country to where you're goin'</p>

<p>So take heed, take heed of the western winds<br>
Take heed of the stormy weather<br>
And yes, there's something you can send back to me<br>
  Spanish boots of Spanish leather</p>
</div>
              
            
!

CSS

              
                body {
  background: #eaeaea;
  font-family: 'PT Mono', monospace;
  text-align: center;
}

.container {
  background: #ddd;
  padding: 2rem 0;
  width: 100%;
}

.title {
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/bobdylan.jpg');
  background-size: cover;
	background-attachment: fixed;
  border-top: 20px solid red;
  border-bottom: 20px solid red;
  width: 100%;
  height: 100vh;
  padding: 2rem 0;
}

h1 {
  font-family: 'Bangers', cursive;
  font-size: 5rem;
  color: #fff;
  text-shadow: 2px 2px 2px #333;
}

small {
  color: red;
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console