123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <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>
            
          
!
            
              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;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console