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.

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

              
                <nav class="top-bar foundation-bar" data-topbar>
  <ul class="title-area">
    <li class="name">
     <span data-tooltip class="has-tip" title="Try resizing your browser to see how the grid stacks"><h1 class="show-for-small-only"><a href="#">Small screen</a></h1></span>
     <span data-tooltip class="has-tip" title="Try resizing your browser to see how the grid stacks"><h1 class="show-for-medium-only"><a href="#">Medium Screen</a></h1></span>
     <span data-tooltip class="has-tip" title="Try resizing your browser to see how the grid stacks"><h1 class="show-for-large-only"><a href="#">Large screen</a></h1></span>
    </li>
  </ul>
  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <ul class="right">
      <li><a  href="https://foundation.zurb.com/docs/"  target="_blank">Foundation Docs</a></li>
      <li class="active"><a  href="https://codepen.io/ZURBFoundation/full/olduj/" target="_blank">Grid Example</a></li>
      <li><a  href="https://codepen.io/ZURBFoundation/full/vKwHa/" target="_blank">Navigation Example</a></li>
      <li><a  href="https://codepen.io/ZURBFoundation/full/AuvoL" target="_blank">Forms</a></li>
      <li><a  href="https://codepen.io/ZURBFoundation/full/fcFnq" target="_blank">Interchange</a></li>
    </ul>
  </section>
</nav>

<div class="row">
  <div class="small-12 columns">
    <br>
    <div data-alert class="alert-box radius secondary">
      <a href="https://codepen.io/ZURBFoundation/full/olduj/" target="_blank">Try viewing this in a separate tab and resizing your browser to see how the grid stacks →</a>
    <a href="#" class="close">&times;</a>
    </div>
  </div>
</div>

<div class="row">
  <div class="small-12 large-6 columns">
    <div class="row ">
      <div class="small-12 medium-6 large-6 columns">
         <img src="http://placehold.it/400x270&text=[img]">       
      </div>
      <div class="small-12 medium-6 large-6 columns">
        <div class="row">
          <div class="small-6 medium-12 medium-centered columns">
            <img src="http://placehold.it/400x100&text=[text]">        
          </div>
          <div class="small-6 medium-12 medium-centered  columns">
            <img src="http://placehold.it/400x100&text=[text]">
          </div>   
        </div>
      </div>
    </div>
   </div>
    <div class="small-12 large-6 columns">
      <div class="row">
        <div class="small-12 columns">
          <form>
            <div class="row">
              <div class="small-12 medium-6 columns">
                <label>Your name</label>
                  <input type="text" placeholder=""/>
              </div>

              <div class="small-12 medium-6 columns">
                <label>Your email</label>
                  <input type="text" placeholder=""/>
              </div>
            </div>

            <div class="row">
              <div class="small-12 columns">
                <label>Your message</label>
                  <textarea placeholder=""></textarea>
              </div>
            </div>

            <a href="#" class="button">Default Button</a>

          </form>
        </div>
      </div>
    </div>
</div>


<div class="row">
  <div class="small-12 medium-6 large-3 large-push-9 columns">
    <img src="http://placehold.it/200x100&text=[img1]">
  </div>
  <div class="small-12 medium-6 large-3 large-push-3 columns">
    <img src="http://placehold.it/200x100&text=[img2]">
  </div>
  <div class="small-12 medium-12 large-3 large-pull-3 columns">
    <img class="show-for-medium-only" src="http://placehold.it/900x340&text=[img3]">
    <img class="hide-for-medium" src="http://placehold.it/200x100&text=[img3]">
  </div>
  <div class="small-12 medium-6 hide-for-medium-only large-3 large-pull-9 columns">
    <img src="http://placehold.it/200x100&text=[img4]">
  </div>
</div>

<div class="row">
  <div class="small-12 large-8 large-push-4 columns">
  <img src="http://placehold.it/600x300&text=[video]">
  </div>
  <div class="small-12 large-4 large-pull-8 columns">
    <div class="row">
      <div class="medium-4 large-12 columns">
        <img src="http://placehold.it/400x100&text=[text]">  
      </div>
      <div class="medium-4 large-12 columns">
        <img src="http://placehold.it/400x100&text=[text]">       
      </div>
      <div class="medium-4 large-12 columns">
        <img src="http://placehold.it/400x100&text=[text]">      
      </div>
    </div>
  </div>
</div>


              
            
!

CSS

              
                img {
  max-width: 100%;
  height: auto;
  width: 100%;
}

@media only screen and (min-width: 0) and (max-width: 64em) {
  img, form, .button {
    padding: 20px;
  }
  .button {
    margin: 20px;
  }
}

.row {
  max-width: 80rem;
  margin-bottom: 20px;
}

.alert-box {
  margin-bottom: 0;
}

              
            
!

JS

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

Console