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

              
                <style>
@import url('https://fonts.googleapis.com/css?family=Raleway&display=swap');
</style>

<div class="header">
<h1>Testing Out PlaceKeanu.com</h1>
<h2>Using the awesome image placeholder PlaceKeanu.com that places random pictures of actor Keanu Reeves in place of other photos.<h2>
</div>
<div id= "main">
<div class="firstPhoto">
<img src="https://placekeanu.com/500/400/y" alt="It's Keanu bitch!">
</div>
<div class="secondPhoto">
<img src="https://placekeanu.com/500/500/g" alt="It's the homie Keanu!">
</div>

<div class="thirdPhoto">
<img src="https://placekeanu.com/500/500/yg" alt="It's John Wick!">
</div>

<div class="fourthPhoto">
<img src="https://placekeanu.com/500/500/" alt="Whoa!">
</div>
</div>
              
            
!

CSS

              
                body{
  background-color: #FFCDD2;
  background-image: url('data:image/svg+xml,%3Csvg width="52" height="26" viewBox="0 0 52 26" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.4"%3E%3Cpath d="M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z" /%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.header{
  background-color: #CE93D8;
  opacity: 0.8;
}
h1, h2 {#CE93D8;
   font-family: 'Raleway', sans-serif;
}


              
            
!

JS

              
                
              
            
!
999px

Console