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

              
                <header class="l-header">
  <h1>header</h1> Lorem ipsum dolor sit amet, consectetur.
</header>
<div class="u-clearfix">
  <main class="l-main">
    <h2>main</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatem voluptas est atque sunt suscipit soluta numquam fugit rerum repudiandae fugiat dolor minus, harum saepe laborum in incidunt magni mollitia aliquid laudantium qui, optio excepturi
      quisquam magnam commodi maiores. Corrupti culpa blanditiis, veritatis in provident earum doloribus necessitatibus asperiores optio magnam error voluptatibus aut consectetur nobis architecto totam tempore eveniet atque mollitia qui fugiat non! Rerum
      sint cumque dolorum harum, autem dolores dolor quasi veritatis ullam quibusdam in et ab possimus, magnam minima nostrum reprehenderit assumenda. Similique, hic, quo. Laborum sed maxime, ab sunt error facilis vel id modi perferendis praesentium.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime laborum doloribus odio obcaecati veniam assumenda, sunt quisquam unde, odit doloremque quod, numquam dicta sint. Dolore asperiores, nihil, atque provident, qui sint mollitia debitis
      sapiente aspernatur animi nulla sed reiciendis iure quo enim perferendis voluptate delectus libero temporibus quisquam voluptatum dolorem. Commodi consequatur odio repudiandae eaque eum nam porro placeat optio.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam dolor ipsum rerum aperiam inventore aut, labore vero culpa nostrum voluptate, voluptatibus error mollitia nihil doloremque, eveniet provident. Velit laboriosam harum quam voluptates
      ullam asperiores perferendis officiis, quisquam, architecto tempora rem optio officia laudantium, voluptatum reprehenderit maiores quidem, aperiam? Eaque neque ex fuga, sit, deserunt repudiandae quos! Quas vel explicabo quam?</p>
  </main>
  <aside class="l-sidebar">
    <h3>sidebar</h3> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro doloribus totam earum facere, laudantium quae expedita quo soluta, magni quibusdam obcaecati ea praesentium accusantium deserunt id nostrum error. Id consectetur placeat sit odit, vitae
    quod sequi blanditiis laboriosam eius fugiat nam necessitatibus optio quas deleniti officiis quo nobis minus, commodi veniam quisquam eveniet dolorum laborum ullam. Corporis saepe, tempora eius.
  </aside>
</div>
<footer class="l-footer">
  <h1>footer</h1> Lorem ipsum dolor sit amet, consectetur.
</footer>
              
            
!

CSS

              
                .l-header {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background: pink;
  @media screen and (max-width: 767px) {
    padding: .5rem 0;
  }
}

.l-footer {
  text-align: center;
  padding: 2rem;
  background: lightgreen;
  @media screen and (max-width: 767px) {
    padding: .5rem 0;
  }
}

.l-main {
  width: 70%;
  float: left;
  padding: 2rem;
  background: lightblue;
  box-sizing: border-box;
  @media screen and (max-width: 767px) {
    width: 100%;
    float: none;
  }
}

.l-sidebar {
  width: 30%;
  float: left;
  padding: 2rem;
  background: lightyellow;
  box-sizing: border-box;
  @media screen and (max-width: 767px) {
    width: 100%;
    float: none;
  }
}

.u-clearfix::after {
  content: "";
  clear: both;
  display: block;
}
              
            
!

JS

              
                
              
            
!
999px

Console