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

              
                <div class="top-bar">
  <div class="top-bar-left">
    <ul class="dropdown menu" data-dropdown-menu>
      <li class="menu-text">Site Title</li>
      <li>
        <a href="#">One</a>
        <ul class="menu vertical">
          <li><a href="#">One</a></li>
          <li><a href="#">Two</a></li>
          <li><a href="#">Three</a></li>
        </ul>
      </li>
      <li><a href="#">Two</a></li>
      <li><a href="#">Three</a></li>
    </ul>
  </div>
  <div class="top-bar-right">
    <ul class="menu">
      <li><input type="search" placeholder="Search"></li>
      <li><button type="button" class="button">Search</button></li>
    </ul>
  </div>
</div>

<article>
  
  <div class="row medium-9 large-7 column mb">
    <h1 class="text-center">Site Title</h1>
    <h4 class="subheader">
      I am inside of a row-column that is 7 columns wide. 
      I will automatically center myself, hawt.
    </h4>
  </div>

  <form class="mb">
    <div class="row">
      <div class="medium-6 columns">
        <label>Input Label
          <input type="text" placeholder=".medium-6.columns">
        </label>
      </div>
      <div class="medium-6 columns">
        <label>Input Label
          <input type="text" placeholder=".medium-6.columns">
        </label>
      </div>
      <div class="medium-12 columns">
        <label>Input Label
          <input type="text" placeholder=".medium-12.columns">
        </label>
      </div>
      <div class="medium-6 columns">
        <label>Input Label
          <input type="text" placeholder=".medium-6.columns">
        </label>
      </div>
      <div class="medium-6 columns">
        <label>Input Label
          <input type="text" placeholder=".medium-6.columns">
        </label>
      </div>
    </div>
    <div class="row">
      <div class="medium-6 large-4 columns medium-centered large-offset-8"> 
        <p><strong>Your Order</strong></p>
        <p>Apple Watch <span class="float-right">$499</span></p>
        <p>Apple Watch Sport<span class="float-right">$599</span></p>
        <hr />
        <p>Subtotal<span class="float-right">$1098</span></p>
        <p>Tax<span class="float-right">$0</span></p>
        <hr />
        <p>Total<span class="float-right">$1098</span></p>
        <button type="submit" class="success expanded button">Buy me please!</button>
      </div>
    </div>

  </form>
  
  <div class="row tall">
    <div class="medium-6 columns medium-push-1">
      <img src="https://images.pexels.com/photos/214670/pexels-photo-214670.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="cool pic" />
    </div>
    <div class="medium-6 columns medium-pull-1">
      <div class="callout">
        <h4>Super sexy thing</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur veritatis neque voluptas vel voluptates aut totam deserunt vero voluptatum ut, sint placeat dolore. Itaque labore, quis rem, harum repellat nam!</p>
        <a href="#">Rent me hourly!</a>
      </div>
    </div>
  </div>
  
  <div class="row small-up-3 medium-up-4 large-up-6 small-collapse medium-uncollapse large-collapse">
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
    <div class="column">
      <img src="https://images.pexels.com/photos/59523/pexels-photo-59523.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" alt="" />
    </div>
  </div>
  
</article>
              
            
!

CSS

              
                

.button {
  margin-bottom: 0;
}

body {
  background: hsla(31,15%,50%,.1);
}

article {padding: 2rem 0;} 

.mb {
  margin-bottom: 2rem;
  position: relative;
}

.tall {
  height: 10rem;
  position: relative;
  margin-bottom: 10rem;
  
  .medium-pull-1 {
    top: 30%;
  }
}




.column {
  padding-bottom: 0;
  
  @media screen and (min-width: 40em) and (max-width: 63.9375em) {
    padding-bottom: 1.8rem;
  }
}
              
            
!

JS

              
                $(document).foundation();

              
            
!
999px

Console