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="container">
  <div class="wrap">
    <div class="box-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam, accusantium!</div>

    <div class="box-3">Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum, maiores? </div>
  </div>
  <div class="box-2">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi itaque optio saepe iste omnis praesentium repellendus eligendi veritatis expedita enim quibusdam quis voluptatum dolores, neque deleniti minus, aperiam nostrum veniam cumque. Atque sequi at expedita distinctio alias, assumenda nihil libero dolorem. Ex eum aperiam officia, ducimus voluptatibus eveniet hic ullam quos pariatur facilis? Distinctio eum cupiditate, ea quod eaque aspernatur consequatur dolorem odit delectus consequuntur laborum. Cumque odio iusto, laboriosam mollitia eveniet blanditiis magni non architecto nostrum asperiores sequi incidunt nihil hic impedit molestias cum? Corporis obcaecati iure eaque in, tempora excepturi quo? Sapiente odio, eos fuga quis illo esse.</div>
              
            
!

CSS

              
                * {   margin: 0;   padding: 0;   box-sizing: border-box; }  ::before, ::after {   box-sizing:inherit; }

.container {
  display: flex;
  border:2px solid red;

}
.box-1, .box-2, .box-3 {

  border: 2px solid #ccc;
}
.box-1, .box-3 {
  background: lightgreen;
  flex: 0 0 50%;
}
.box-2 {
  background: yellow;
  flex:0 0 50%;

}

.wrap {
  display: flex;
  flex-direction: column;flex:0 0 60%;
}
              
            
!

JS

              
                
              
            
!
999px

Console