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 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>Heading 1</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis sunt, quibusdam earum rem aliquam praesentium nostrum voluptatum enim eius saepe, nobis blanditiis incidunt asperiores sapiente illo sit, numquam distinctio temporibus?</p>
<p>Libero ipsa facilis soluta qui explicabo, exercitationem sed repudiandae? Maiores alias non consectetur commodi perspiciatis recusandae sunt vero, laborum quam rerum beatae provident quod in ad veniam esse delectus asperiores.</p>
<h2>Heading 2</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis sunt, quibusdam earum rem aliquam praesentium nostrum voluptatum enim eius saepe, nobis blanditiis incidunt asperiores sapiente illo sit, numquam distinctio temporibus?</p>
<p>Libero ipsa facilis soluta qui explicabo, exercitationem sed repudiandae? Maiores alias non consectetur commodi perspiciatis recusandae sunt vero, laborum quam rerum beatae provident quod in ad veniam esse delectus asperiores.</p>
<h3>Heading 3</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium amet vel fugit error laborum aut quidem excepturi magni explicabo earum tenetur esse sit doloremque minus numquam, doloribus aspernatur quas porro.</p>
<p>Praesentium veniam repellendus facere? Praesentium ullam placeat adipisci tempore quisquam ad assumenda tenetur obcaecati dicta. Aliquid eius pariatur tenetur accusantium hic eos asperiores aliquam fugit molestias sit, neque dolor rem?</p>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html {
  background-color: #fff;
  box-sizing: border-box;
}

body {
  background-color: #e6e8ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

/* This is the relevant code! */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 10px;
}
  
p {
  margin-bottom: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console