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">
  <h1>The Wizard of Oz</h1>
  <h2>Chapter 3: How Dorothy Saved the Scarecrow</h2>
  <div class="content">
    <p>"Who are you?" asked the Scarecrow when he had stretched himself and yawned. "And where are you going?"</p>
    <p>"My name is Dorothy," said the girl, "and I am going to the Emerald City, to ask the Great Oz to send me back to Kansas."</p>
    <p>"Where is the Emerald City?" he inquired. "And who is Oz?"</p>
    <p>"Why, don't you know?" she returned, in surprise.</p>
    <p>"No, indeed. I don't know anything. You see, I am stuffed, so I have no brains at all," he answered sadly.</p>  
    <p>"Oh," said Dorothy, "I'm awfully sorry for you."</p>
    <p>"Do you think," he asked, "if I go to the Emerald City with you, that Oz would give me some brains?"</p>
    <p>"I cannot tell," she returned, "but you may come with me, if you like. If Oz will not give you any brains you will be no worse off than you are now."</p>
    <p>"That is true," said the Scarecrow.  "You see," he continued confidentially, "I don't mind my legs and arms and body being stuffed, because I cannot get hurt.  If anyone treads on my toes or sticks a pin into me, it doesn't matter, for I can't feel it. But I do not want people to call me a fool, and if my head stays stuffed with straw instead of with brains, as yours is, how am I ever to know anything?"</p>
    <p>"I understand how you feel," said the little girl, who was truly sorry for him.  "If you will come with me I'll ask Oz to do all he can for you."</p>
    <p>"Thank you," he answered gratefully.</p>
    <p>They walked back to the road. Dorothy helped him over the fence, and they started along the path of yellow brick for the Emerald City.</p>
  </div>
</div>
              
            
!

CSS

              
                html,
body {
  height: 100%;
}

body {
  background: #f1f2f3;
  font-family: "Open Sans", sans-serif;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 800px;
}

.container {
  background: #fff;
  padding: 2em;
}
.content {
  column-count: 2;
  column-gap: 2em;
  margin: 0;
}

h1,
h2 {
  margin: 0 0 .5em;
}
              
            
!

JS

              
                // Demo example for https://github.com/AllThingsSmitty/css-protips#add-line-height-to-body
              
            
!
999px

Console