Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="grid-container grid-container-padded">
  <div class="grid-x grid-margin-x">
    <div class="cell">
      <h3>Flexbox Utilities: Responsive Classes</h3>
    </div>
  </div>
</div>
<div class="grid-container grid-container-padded grid--demo">
  <div class="grid-x grid-padding-x">
    <div class="cell small-12 flex-container flex-dir-column large-flex-dir-row">
      <div class="callout primary flex-child-auto">Auto</div>
      <div class="callout primary flex-child-auto">Auto</div>
      <div class="callout primary flex-child-shrink large-flex-child-auto">Auto on Large</div>
    </div>
    <div class="cell small-12 align-self-top">Align top. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non harum laborum cum voluptate vel, eius adipisci similique dignissimos nobis at excepturi incidunt fugit molestiae quaerat, consequuntur porro temporibus. Nisi, ex?Align top. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non harum laborum cum voluptate vel, eius adipisci similique dignissimos nobis at excepturi incidunt fugit molestiae quaerat, consequuntur porro temporibus. Nisi, ex?Align top. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non harum laborum cum voluptate vel, eius adipisci similique dignissimos nobis at excepturi incidunt fugit molestiae quaerat, consequuntur porro temporibus. Nisi, ex?</div>
  </div>
</div>
              
            
!

CSS

              
                // Foundation Colors
$primary-color : #1779ba;
$secondary-color : #767676;
$success-color : #3adb76;
$warning-color : #ffae00;
$alert-color : #cc4b37;
$light-gray: #e6e6e6;
$medium-gray: #cacaca;
$dark-gray: #8a8a8a;
$black: #0a0a0a;
$white: #fefefe;

// demo css 
body {padding-top: 15px;}
.grid--demo {
  margin-top: 5px;
  .grid-x,
  .grid-y {
    background: lighten($primary-color, 50%);
    font-size: 12px;
    line-height: 2rem;
    margin-bottom: 1.5rem;
  }

  .grid-y .grid-x {
    margin-bottom: 0;
  }

  .cell {
    &:nth-child(odd) {
      background: lighten($primary-color, 30%);
      color: $black;
    }
    &:nth-child(even) {
      background: $primary-color;
      color: $white;
    }
  }
}
              
            
!

JS

              
                $(document).foundation();
              
            
!
999px

Console