Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
  <section class="main-content">
    <div class="panel">
      <h1>Main Title</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed dolorem beatae, voluptatibus, dolore ab animi repellat saepe cum, praesentium in incidunt sunt quod asperiores a rem necessitatibus. Quod cum, blanditiis.</p>
      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/409269/laptop001.jpg" alt="laptop" />
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsam adipisci pariatur aperiam, cupiditate aspernatur aut eligendi laudantium facilis delectus maxime hic, asperiores cum temporibus, nihil. Rerum magnam, repellendus enim libero. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat nisi porro modi odio recusandae nostrum dicta asperiores id, facilis, expedita magni dolore, tempore velit debitis inventore iure libero in!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque reprehenderit iusto nam suscipit, aspernatur esse. Eum minus, saepe, alias est molestiae libero, sit voluptate sed quo dicta quibusdam nam consectetur!</p>
      <h3>Subtitle</h3>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit numquam nemo voluptates quis doloribus atque aliquam nisi commodi tenetur quasi perspiciatis eum quisquam quaerat eius odit repellendus, temporibus, minima, consectetur.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius veritatis vero asperiores error optio, praesentium ipsum impedit! Officia sed debitis, dolore, non praesentium cupiditate dicta itaque ratione doloribus quod consequuntur!</p>
    </div>
    
  </section>
  
  <aside class="sidebar">
    <div class="panel">
      <h3>Item 1</h3>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo cumque atque repellat accusantium provident ipsum!</p>
    </div>
    <div class="panel">
      <h3>Item 2</h3>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
    </div>
    <div class="panel">
      <h3>Item 3</h3>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo cumque atque ab sapiente enim!</p>
    </div>
    <div class="panel">
      <h3>Item 4</h3>
      <p>Neque voluptatem necessitatibus praesentium, mollitia laboriosam provident! Amet, veritatis.</p>
  </aside>
</div>
            
          
!
            
              * { box-sizing: border-box; }
html, body {
  background: #333338;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #444;
}
h1,h2,h3,h4,h5,h6 {
  font-family: Arial, sans-serif;
}

.main-content .panel img {
  float: left;
  margin: 0 10px 0 0;
}

.main-content, .sidebar {
  margin: 10px;
  background: #eee;
  padding: 6px;
}

.panel {
  background: #fff;
  padding: 20px;
  margin: 10px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console