123

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.

            
              <ul class="grid">
  <li class="grid_item">
    <div class="copy">
      <strong>Ornare Elit Quam</strong>
      <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Commodo Adipiscing Aenean</strong>
      <p>Nulla vitae elit libero, a pharetra augue. Vestibulum id ligula porta felis euismod semper.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Lorem Ligula Consectetur</strong>
      <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Vestibulum id ligula porta felis euismod semper.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Magna Tellus</strong>
      <p>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Bibendum Amet Justo</strong>
      <p>Curabitur blandit tempus porttitor. Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Malesuada Ullamcorper Risus</strong>
      <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Condimentum Inceptos</strong>
      <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nulla vitae elit libero, a pharetra augue.</p>
    </div>
  </li>
  <li class="grid_item">
    <div class="copy">
      <strong>Ipsum Ullamcorper</strong>
      <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
    </div>
  </li>
</ul>
            
          
!
            
              * {
  box-sizing: border-box;
}
.grid {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  list-style: none;
  margin: 10px auto;
  max-width: 1000px;
  
  @media screen and (min-width: 480px) {
      display: flex;
      flex-flow: row wrap;
  }
}
.grid_item {
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  margin: 10px;
  padding: 20px;

  @media screen and (min-width: 480px) {
    max-width: calc(50% - 20px);
    flex: 0 0 calc(50% - 20px);
  }
  @media screen and (min-width: 768px) {
    max-width: calc(33.333333333% - 20px);
    flex: 0 0 calc(33.333333333% - 20px);
  }
}
strong {
  display: block;
  font-weight: bold;
  margin-bottom: 1em;
}
            
          
!
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