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="off-canvas-wrap">
  <div class="inner-wrap">
    <nav class="top-bar hide-for-medium-up" data-topbar>
      <ul class="title-area">
        <li class="name"><h1><a href="#">Foundation</a></h1></li>
        <li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
      </ul>
      <section class="top-bar-section">
        <ul class="right">
          <li class="active"><a href="#">Right Button Active</a></li>
          <li class="has-dropdown"><a href="#">Right Button Dropdown</a>
            <ul class="dropdown">
              <li><a href="#">First link in dropdown</a></li>
            </ul>
          </li>
        </ul>
        <ul class="left">
          <li><label>Users</label></li>
          <li><a href="#">Hari Seldon</a></li>
          <li><a href="#">R. Giskard Reventlov</a></li>
          <li><a href="#">R. Daneel Olivaw</a></li>
          <li><a href="#">The Mule</a></li>
          <li><a href="#">Dors Venabili</a></li>
          <li><a href="#">Yugo Amaryl</a></li>
          <li><a href="#">The Mule</a></li>
          <li><a href="#">Emperor Cleon I</a></li>
          <li><a href="#">Gaal Dornick</a></li>
          <li><a href="#">Bel Riose</a></li>
          <li><a href="#">Salvor Hardin</a></li>
          <li><a href="#">Bel Riose</a></li>
        </ul>
      </section>
    </nav>
    <nav class="tab-bar show-for-medium-up">
      <section class="left tab-bar-section">
        <h1 class="title">Foundation</h1>
      </section>
      <section class="right-small">
        <a class="right-off-canvas-toggle menu-icon" ><span></span></a>
      </section>
    </nav>
    <aside class="right-off-canvas-menu">
      <ul class="off-canvas-list">
        <li><label>Users</label></li>
        <li><a href="#">Hari Seldon</a></li>
        <li><a href="#">R. Giskard Reventlov</a></li>
        <li><a href="#">R. Daneel Olivaw</a></li>
        <li><a href="#">The Mule</a></li>
        <li><a href="#">Dors Venabili</a></li>
        <li><a href="#">Yugo Amaryl</a></li>
        <li><a href="#">The Mule</a></li>
        <li><a href="#">Emperor Cleon I</a></li>
        <li><a href="#">Gaal Dornick</a></li>
        <li><a href="#">Bel Riose</a></li>
        <li><a href="#">Salvor Hardin</a></li>
        <li><a href="#">Bel Riose</a></li>
      </ul>
    </aside>
    <section class="main-section">
      <h1 class="text-center">Offcanvas For Medium Up With Topbar For Small Only</h1>
      <div class="row">
        <h2>Put your main content here!</h2>
        <p>Bacon ipsum dolor sit amet salami kevin jowl drumstick, short ribs landjaeger tail t-bone spare ribs fatback shankle pork. Cow shoulder ham hock strip steak, tenderloin jerky shank. Bresaola swine cow beef hamburger short ribs. Pork flank tail hamburger drumstick.</p>
        <p>Bresaola short loin flank capicola pork belly corned beef. Meatball porchetta landjaeger tongue shankle, leberkas ribeye rump beef turducken tri-tip ham andouille. Kielbasa jowl ham hock, prosciutto meatball fatback t-bone porchetta shoulder pancetta pig pork turducken. Bacon prosciutto pig kevin ham ground round tongue venison pastrami andouille swine rump pork.</p>
        <p>Capicola biltong sirloin, kielbasa brisket fatback prosciutto t-bone pork belly corned beef. Boudin shankle ribeye shoulder. Swine spare ribs kevin leberkas, tail porchetta rump prosciutto meatball ball tip sausage beef ribs drumstick bresaola meatloaf. Brisket meatball shoulder, doner bacon pork chop leberkas. Tri-tip jowl short loin drumstick kevin shoulder shankle boudin jerky strip steak leberkas turkey venison flank.</p>
      </div>
    </section>
    <a class="exit-off-canvas"></a>
  </div>
</div>
              
            
!

CSS

              
                html, body, .off-canvas-wrap, .inner-wrap, .main-section {
  min-height: 100%;
}
h1, h2, p {
  font-family: 'Open Sans', sans-serif;
}
              
            
!

JS

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

Console