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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <div class="row">
  <div class="medium-4 columns flex-container">
    <div class="card">
      <img src="http://placehold.it/600x300">
      <div class="card-section">
        <h4>Tallest card.</h4>
        <p>This is the tallest card. It dictates the heights of the cards in each row. Since the columns containing these cards have the <code>.flex-container</code> class, the cards will all have equal heights too!</p>
        
        <ul class="menu vertical">
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
        </ul>
      </div>
    </div>
  </div>
  <div class="medium-4 columns flex-container">
    <div class="card">
      <img src="http://placehold.it/600x300">
      <div class="card-section">
        <h4>Shorter card.</h4>
        <p>It has an easy to override visual style, and is appropriately subdued. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni recusandae odio.</p>
      </div>
    </div>
  </div>
  <div class="medium4-4 columns flex-container">
    <div class="card">
      <img src="http://placehold.it/600x300">
      <div class="card-section">
        <h4>Shortest card.</h4>
        <p>It has an easy to override visual style, and is appropriately subdued.</p>
      </div>
    </div>
  </div>
</div>

            
          
!

CSS

            
              





















.button {
  margin-bottom: 0;
}

.columns,
.column {
  &:nth-of-type(1) {
    background: #d6f5d6;
  }
  
  &:nth-of-type(2) {
    background: #99e699;
  }
  
  &:nth-of-type(3) {
    background: #5cd65c;
  }
  
  &:nth-of-type(4) {
    background: #2eb82e;
  }
  
  &:nth-of-type(5) {
    background: #1f7a1f;
  }
  
  &:nth-of-type(6) {
    background: #0f3d0f;
  }
  
  p {
    margin: 0;
  }
  
  &.tall {
    height: 10rem;
  }
}

body {
  background: hsla(31,15%,50%,.1);
  padding-top: 4rem;
}



.row {
  margin-bottom: 90px;
  border: 1px solid #999;
}
            
          
!

JS

            
              $(document).foundation();


            
          
!
999px

Console