Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
<section class="example">
  <div class="example__point">
    <h3>This example uses the mixin.</h3>
    <p>We're using the mixin here for wrapping flex content. It also works with floated <code>.example__point</code> elements, but they won't have matching heights.</p>
  </div>
  <div class="example__point">
    <h3>Provident quae ex aperiam.</h3>
    <p>Quas, incidunt placeat sit sed vel vitae assumenda corrupti? Deserunt.</p>
  </div>
  <div class="example__point">
    <h3>Veritatis laboriosam magnam quam?</h3>
    <p>Libero hic cum quod at repellat laudantium dolor atque repellendus?</p>
  </div>
  <div class="example__point">
    <h3>Adipisci ad dignissimos aut.</h3>
    <p>Nisi ex omnis dolor nam distinctio ab odio labore animi.</p>
  </div>
  <div class="example__point">
    <h3>Praesentium, expedita repellendus? Id?</h3>
    <p>Sed nulla dolorum ex. Hic aut tempora ex voluptatibus quos.</p>
  </div>
  <div class="example__point">
    <h3>Accusantium at culpa odit.</h3>
    <p>Unde facere atque quo perspiciatis aperiam corporis dicta aliquid repellendus.</p>
  </div>
  <div class="example__point">
    <h3>Ad deleniti sit reiciendis?</h3>
    <p>Porro inventore sunt, officiis quo minus sed corporis asperiores! Eligendi!</p>
  </div>
</section>
              
            
!

CSS

              
                * { box-sizing: border-box; font-family: Lato; } code { font-family: monospace }

.example {
  display: flex;
  flex-flow: wrap;
  margin: 0 auto;
  padding: 0 30px;
  max-width: 1200px;
  
  &__point {
    background-color: rgba(0, 255, 255, .25);
    padding: 0 1rem;
    margin-bottom: gutter();
    
    @media screen and (min-width: 590px) {
      @include wrap(6);
    }
    
    @media screen and (min-width: 870px) {
      @include wrap(4);
    }
    
    @media screen and (min-width: 1150px) {
      @include wrap(3);
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console