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>
  <div class="container">
    <h1>-Do Work That Matters-</h1>
    <h3>You'll never regret it.</h3>
  </div><!-- /.container -->
</header>
<section>
  <div class="container">
    <p class="lead-in">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Modi, ratione, veritatis! Deserunt et ullam rem ut, sit, qui alias molestias impedit sunt doloremque officiis. Velit, ullam eius impedit commodi asperiores?</p>
    
    <hr />
    
    <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.</p>
    
    <p>Quam dolore nihil pariatur aliquam nesciunt voluptate accusantium necessitatibus, repellendus ea dolorum odit laudantium in doloribus, voluptatem, beatae vitae aspernatur! Nostrum deleniti nihil corporis tenetur similique sequi atque distinctio necessitatibus.</p>
    
    <p>Eos cupiditate, id. Tempore vero eum sapiente reprehenderit, corporis natus nulla inventore quae, itaque mollitia ipsam! Numquam culpa eius, est error! Repudiandae fugit adipisci fugiat optio aliquid natus, similique molestias.</p>
  </div><!-- /.container -->
</section>

            
          
!
            
              /* Variables */
$bg-image: "https://images.unsplash.com/photo-1441716844725-09cedc13a4e7?q=80&fm=jpg&s=c895a1f219d174952415b9b7a0811e62";
$bg-overlay: rgba(0,235,235,0.7);

$primary-color: #FFFFFF;
$primary-font: "Amatic SC", cursive;
$secondary-color: #FFF0A5;
$secondary-font: "Abril Fatface", cursive;
$body-color: #999999;
$body-font: Helvetica, Arial, sans-serif;

/* Fonts */
@import url(https://fonts.googleapis.com/css?family=Abril+Fatface);
@import url(https://fonts.googleapis.com/css?family=Amatic+SC);

/* Mixins */
@mixin bg-images(
    $image-path: "https://images.unsplash.com/photo-1441716844725-09cedc13a4e7?q=80&fm=jpg&s=c895a1f219d174952415b9b7a0811e62",
    $overlay-color: rgba(255,255,255,0.8),
    $position: center center) {

    animation: bgFadeIn 1s ease-in both;
    position: relative;

    &:before {
        background:
            linear-gradient(
              $overlay-color,
              $overlay-color
            ),
            url($image-path);
        background-color: #CCCCCC;
        background-attachment: fixed;
        background-position: $position;
        background-repeat: no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        bottom: 0;
        content: ' ';
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: -1;
    }

    @keyframes bgFadeIn {
        0% { background-color: rgba(255, 255, 255, 1); }
        100% { background-color: rgba(255, 255, 255, 0); }
    }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  color: $body-color;
  font-family: $body-font;
  font-size: 10px;
  font-weight: 100;
  margin: 0;
  padding: 0;
}

.container {
  margin: 0 auto;
  max-width: 750px;
  padding: 0 24px;
}

header {
  @include bg-images(
    $image-path: $bg-image,
    $overlay-color: $bg-overlay
  );
  padding: 28px;
  text-align: center;
  
  .container {
    margin: 12rem auto;
  }
  
  h1 {
    border-bottom: 2px solid $primary-color;
    border-top: 2px solid $primary-color;
    color: $primary-color;
    font-family: $primary-font;
    font-size: 8.75rem;
    margin: 0;
  }
  
  h3 {
    color: $secondary-color;
    font-family: $secondary-font;
    font-size: 3.75rem;
    font-style: italic;
    font-weight: 100;
    margin: 0;
  }
}

section {
  padding: 2rem;
  
  p {
    font-size: 2.5rem;
    line-height: 3.5rem;
    
    &.lead-in {
      font-size: 3rem;
      
      &:first-letter {
        font-size: 7.25rem;
        display: block;
        float: left;
        position: relative;
        line-height: .1;
        top: -0.200em;
      }
      
    }
  }
}
            
          
!
999px
Loading ..................

Console