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

              
                <div class="wrapper">
  <div class="a">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  
  <div class="b">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus porta elit vel ante hendrerit facilisis. Curabitur aliquam sollicitudin diam, id posuere elit consectetur nec. Vestibulum quam dolor, feugiat in posuere a, posuere imperdiet tellus. Mauris sed ligula vitae urna consequat aliquet. Curabitur pellentesque consectetur ornare. Pellentesque vel euismod odio. Nulla tempus pharetra nulla. In justo dolor, sollicitudin nec commodo sit amet, adipiscing eget lectus. Phasellus velit enim, tempus et lobortis eget, rhoncus nec dolor. Proin sollicitudin velit nec est rutrum fermentum. Nam mauris dolor, faucibus id vestibulum non, vulputate quis erat. Integer fermentum lobortis ligula, eget tincidunt lectus ornare ullamcorper. Nam vitae felis turpis. Aliquam volutpat tempus pretium. Vestibulum luctus pharetra aliquet.
  </div>
</div>

              
            
!

CSS

              
                @import "compass/css3";

$flex-wrap-required: true;
.wrapper {
  @include display-flex;
}

.a, .b {
  @include display-flex;
  @include flex-flow(row wrap);
}

.a div, .b {
  border: 1px solid;
  @include flex(1 0 100%);
}

/* Fancy it up! */
.a {
  background: #ff9999;
}

.b {
  background: #00e600;
}

.a, .b {
  @include flex(1 1 50%);
}

              
            
!

JS

              
                
              
            
!
999px

Console