cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <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="http://foundation.zurb.com/docs/"  target="_blank">Foundation Docs</a></li>
      <li class="active"><a  href="http://codepen.io/ZURBFoundation/full/olduj/" target="_blank">Grid Example</a></li>
      <li><a  href="http://codepen.io/ZURBFoundation/full/vKwHa/" target="_blank">Navigation Example</a></li>
      <li><a  href="http://codepen.io/ZURBFoundation/full/AuvoL" target="_blank">Forms</a></li>
      <li><a  href="http://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="http://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>


            
          
!
            
              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;
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console