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

              
                <nav class="top-bar" data-topbar role="navigation">
  <ul class="title-area">
    <li class="name">
      <h1><a href="#">My Site</a></h1>
    </li>
    <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
  </ul>

  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <ul class="right">
      <li><a href="#">About</a></li>
      <li><a href="#">Portfolio</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Contact Us</a></li>
    </ul>
  </section>
</nav>

<div class="header">
  <div class="header-content">
    <h1 class="header-title">Build With Ease</h1>
    <a href="#" class="button round">Enquire Now</a>
  </div>

  <div class="embed-frame">
    <iframe src="https://goo.gl/B6HYrw" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
  </div>
</div>

<main class="main-content">
  <div class="row">
    <div class="large-12 columns text-center">
      <h2>What we can do for you</h2>
      <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est.Mauris
        placerat eleifend leo. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.</p>
    </div>
  </div>
</main>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700);

body,
h1,
h2,
p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

.header {
  position: relative;
  overflow: hidden;
}

.header-content {
  position: absolute;
  text-align: center;
  width: 100%;
  top: 8%;
}

.header-title {
  margin-bottom: 1rem;
  font-size: 6vw;
  color: #333;
}

@media (min-width: 640px) {
  .header-title {
    font-size: 46px;
  }
}

.embed-frame {
  width: 150vw;
  height: 84.375vw;
  margin: 0 0 0 -25%;
}

@media (min-width: 640px) {
  .embed-frame {
    width: 100vw;
    height: 56.25vw;
    max-width: 100%;
    margin: 0; 
  }
}

.button {
  text-transform: uppercase;
  font-size: 10px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

@media (min-width: 640px) {
  .button {
    font-size: 16px;
  }
}

.main-content {
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .main-content{
    padding: 5rem 0;
  }
}
              
            
!

JS

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

Console