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.

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

            
              <section id="outer">
  <div>
    <h2>#outer</h2>
    <p data-outer class="outer_p">
      <strong>paragraph:</strong> 
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Reprehenderit, ab magni quod obcaecati consectetur voluptatum voluptate quas eligendi minus eaque ex, quae quo quos officiis sint fuga doloremque ipsam cumque?
    </p>
    <button>push me</button>    
    <button class="danger">not me</button>    
  </div>
  
  <div id="inner">
    <h2>#inner</h2>
    <p data-inner class="inner_p">
      <strong>paragraph:</strong> 
      Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repellendus, fugiat ratione alias obcaecati sit dolorum unde voluptatem voluptatibus quidem nihil, sed sapiente accusamus fuga deserunt adipisci labore dignissimos exercitationem hic!
    </p>
    <button>push me</button>
    <button class="danger">not me</button>    
  </div>
</section>

            
          
!

CSS

            
              

button {
  background: var(--btn-color, green);
}

#inner {
  --btn-color: red;
}


















/* visualize */
[id] {
  border: 1px solid;
}

section, div {
  margin: 1em;
}

[id="inner"] {
  padding: 1em;
}






/* remedy */
* { box-sizing: border-box; }
html { font-size: calc(1em + 1vw); }
body { padding: 1em; }
h2 {
  line-height: 1;
  margin: 0;
}
            
          
!

JS

            
              
            
          
!
999px

Console