cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <header>
  <h1>R. S. Sailing Club</h1>
  
  <nav>
    <ul>
      <li><a href="">Home</a></li>
      <li><a href="">About</a></li>
      <li><a href="">Join</a></li>
      <li><a href="">Contact</a></li>
    </ul>
  </nav>
</header>

<article>
  <section class="feature">
    <h1>The Men's Escape to the Crack of Doom</h1>

    <p>The Man women and children hurried to The Crack of Doom for shelter. In the meantime, Aragorn insisted on attacking The mines of Moria, but the Orcs were waiting. Morgoth felt he did not have the strength to attack. The Hobbits were ravaging the countryside, leaving destruction in their wake. </p>
  </section>

  <p>Gandalf led the Ents to attack Weathertop, but the attack failed. Farmer Maggot felt he did not have the strength to build. 6 axe were smashed. Faramir insisted on attacking Hobbiton, but the Elves were waiting. "Quick!", cried Grima Wormtongue, "Dwarves!" </p>

  <p>The Men were ravaging the countryside, leaving destruction in their wake. Eowyn attacked Weathertop, and slaughtered the Orcs in a surprise attack. Sam attacked The mines of Moria, and slaughtered the Hobbits in a surprise attack. The Elves ambushed Boromir at Bree. Meanwhile, The attack failed, forcing the Dwarves to retreat to Bree. </p>
</article>
            
          
!
            
              $light: #ffffff;
$light-secondary: #eeeeec;
$dark: #204a87;
$dark-secondary: #3465a4;

$font-header: 'Montserrat', sans-serif;
$font-copy: 'Alegreya', serif;


html, body {
  width: 100%;
  height: 100%;
}

body * {
  box-sizing: border-box;
}

body {
  font-family: $font-copy;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: $font-header;
}

h1, h2 {
  font-variant: small-caps;
  font-weight: normal;
}

header {
  background-color: $dark;
  color: $light;
  overflow: hidden;
  padding: 0 .5em;
  
  h1 {
    font-weight: normal;
    font-variant: small-caps;
    float: left;
  }
  
  nav ul {
    float: right;
    line-height: 80px;
    list-style: none;
    margin: 0;
    padding: 0;
    
    li {
      display: inline-block;
      margin-left: 1em;
    }
  }
  
  a {
    color: $light;
    font-family: $font-header;
    text-decoration: none;
    text-transform: uppercase;
  }
}

article {
  padding: 1em;
  
  .feature {
    font-size: 1.2em;
    margin-bottom: 2em;
    padding-left: 20%;
    padding-right: 20%;
    text-align: center;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console