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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="content">
<blockquote>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime consequuntur eaque animi, iusto ipsam quod amet fugit in nisi asperiores quidem ipsa quisquam dignissimos tempore dicta, dolor quam pariatur quae?</p>
</blockquote>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eos quidem iusto illum rem nulla doloremque recusandae nisi libero et maiores ad vel aliquid voluptatem velit quo, possimus quam dolor ex.</p>
<p>Laudantium nihil, autem cupiditate, soluta sed nisi libero magni quas numquam voluptates ea? Sint, aut maxime. Possimus sunt praesentium neque. Eaque non porro consequatur necessitatibus esse id fugiat nobis quae!</p>
<p>Officia expedita eos ad, deserunt ipsam quaerat magnam repellendus nemo magni consequatur quam quia repellat. Ipsa ratione excepturi ducimus, voluptates iste veritatis, totam aspernatur, laudantium eos natus eligendi commodi voluptas.</p>
<blockquote>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime consequuntur eaque animi, iusto ipsam quod amet fugit in nisi asperiores quidem ipsa quisquam dignissimos tempore dicta, dolor quam pariatur quae?</p>
  <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ducimus neque, libero ipsa iste dolorum veritatis est voluptate soluta tempora nam distinctio sint quod laudantium repellendus ipsum harum asperiores fuga debitis?</p>
</blockquote>
  
</div>
              
            
!

CSS

              
                body {
  font: 1em/1.618 sans-serif;
}

p {
  margin: 0;
  &:not(:last-child) {
    margin-bottom: 1.5em;
  }
}

.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 2em;
  color: #333;
}

blockquote {
  padding: 2em;
  font-size: 1.2em;
  text-align: center;
  border: 2px solid #037;
  color: #037;
  border-width: 7px 0 1px;
  border-bottom-style: dotted;
  margin: 3em 0;
}

@supports (selector(html:has(body))) {
  blockquote:has(p + p) {
    text-align: left;
  }
}
@supports not (selector(html:has(body))) {
  body:before {
    padding: 1em;
    color: red;
    display: block;
    content: "Your browser doesn't support the `:has()` pseudo-class yet.";
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console