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 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.

            
              <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>

<footer>
  &copy; 2015 R. S. Sailing Club
</footer>
            
          
!
            
              $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;
    }
  }
  
  @media (max-width: 630px) {
    ul {
      display: block !important;
      float: left !important;
      width: 100% !important;
    }
  }
  
  
  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;
    
    @media (max-width: 630px) {
      padding: 0;
    }
  }
}

footer {
  background-color: $light-secondary;
  padding: 2em;
  font-size: 1.2em;
  text-align: center;
}
            
          
!
999px
Loading ..................

Console