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

              
                <section class="credits">
  <header>
    <h1>Cream<em> of </em>Corn</h1>
  </header>

  <dl class="credits__single">
    <dt>Directed by</dt>
    <dd>Marge Longskin</dd>
    <dt>Written by</dt>
    <dd>Sally Peeps</dd>
    <dt>Director of Photography</dt>
    <dd>Benjarmin Külksteedér</dd>
    <dt>Executive Producer</dt>
    <dd>Filbert Montery</dd>
  </dl>

  <h2>Cast</h2>
  <dl class="credits__double">
    <dt>Carol</dt>
    <dd>Jane Closter</dd>
    <dt>Jimmy Stickbürger</dt>
    <dd>George Farmstand</dd>
    <dt>Steweart Pinkbelly</dt>
    <dd>Ed “Singin’ Ed” Butters</dd>
    <dt>The Corn Bucket Gang</dt>
    <dd>Steve Sugarbean</dd>
    <dd>Kelly Kelen</dd>
    <dd>Carl Whereist</dd>
    <dd>Tom Guyman</dd>
    <dt>Random Dude</dt>
    <dd>Scott Oilier</dd>
    <dt>Awful Co&#8209;Worker</dt>
    <dd>Jeff MacAfloat</dd>
    <dt>@replier</dt>
    <dd>Manny Splain</dd>
  </dl>

  <h2>Crew</h2>
  <dl class="credits__double">
    <dt>Grip</dt>
    <dd>Roberto Chinwaggon</dd>
    <dt>Sound Mixer</dt>
    <dd>Laura Palmn</dd>
    <dt>Rain Manager</dt>
    <dd>Larry Presstown</dd>
    <dt>Stunt Coordinator</dt>
    <dd>Jeorge Chuckles</dd>
    <dt>Deer Attendant</dt>
    <dd>Tobias Freemason</dd>
    <dt>Foley Artist</dt>
    <dd>Dave Lamason</dd>
    <dt>Craft Services</dt>
    <dd>Peas, Peas & Peas</dd>
    <dd>Lobster Shoppe West</dd>
    <dt>Dental Services</dt>
    <dd>The Freelance Dentist</dd>
    <dt>Cat Council</dt>
    <dd>Fergus</dd>
    <dd>Francy</dd>
  </dl>

  <h2>Special Thanks</h2>
  <ul class="credits__inline">
    <li>Baywood Woester</li>
    <li>Friend & Friend Associates</li>
    <li>The Dimestore</li>
    <li>Gill & Falinda Bates</li>
    <li>The Staple Factory</li>
    <li>Sink & Bath Metalworks</li>
    <li>The “Car” Store</li>
    <li>Steam Floaters</li>
    <li>Billy Williams</li>
    <li>The Wax Store</li>
    <li>Rock Murphy</li>
    <li>Salmon Dean</li>
    <li>Sherraden Hogworth</li>
    <li>Philip Converse</li>
  </ul>

  <h2>Music</h2>
  <div class="credits__music">
    <dl>
      <dt>The Earth Ate my Butt</dt>
      <dd><em>Performed by</em> Lamp Toast Esquire</dd>
      <dd><em>Written by</em> Sammy Syrup</dd>
    </dl>
    <dl>
      <dt>It’s All Pun and Games</dt>
      <dd><em>Performed by</em> Lake Pond</dd>
      <dd><em>Written by</em> Kathy Steam</dd>
    </dl>
    <dl>
      <dt>Seriously, Where’s my&nbsp;Socks<br>(I Can’t Find my Socks)</dt>
      <dd><em>Performed by</em> Ed “Singin’ Ed” Butters</dd>
      <dd><em>Written by</em> Ed “Singin’ Ed” Butters</dd>
    </dl>
    <dl>
      <dt>Follow me to the Bread Store</dt>
      <dd><em>Performed by</em> Elemeno Pea</dd>
      <dd><em>Written by</em> Carla Carrot</dd>
    </dl>
    <dl>
      <dt>Pink Butter</dt>
      <dd><em>Performed by</em> DJ Shrimpz</dd>
      <dd><em>Written by</em> DJ Shrimpz</dd>
    </dl>
  </div>

  <p>Original Soundtrack available on My Brother’s Speaker Records</p>

  <footer>
    <h3>Adopt Don’t Shop</h3>
    <h4>&copy<span class="smcaps">MCMXVIII</span> Kmart Parking Lot Pictures</h4>
  </footer>
</section>

              
            
!

CSS

              
                @import url("https://use.typekit.net/dlv3ztc.css");

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background-color: #060606;
  color: #c7c6ac;
  font-family: adelle;
  font-variant-ligatures: common-ligatures;
  display: flex;
  justify-content: center;
  font-synthesis: none;
}

h1 {
  font-family: adelle-condensed;
  text-align: center;
  font-weight: 400;
  font-variant-caps: all-small-caps;
  font-size: 6rem;
  
  em {
    font-variant-caps: normal;
    font-size: .8em;
  }
}

h2 {
  text-align: center;
  font-weight: 400;
  font-size: 2.5rem;
  margin-top: 5rem;
  margin-bottom: .5rem;
  font-variant-caps: all-small-caps;
}

h3 {
  text-align: center;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 2rem;
}

h4 {
  text-align: center;
  font-weight: 400;
  font-size: 1.8rem;
}

p {
  font-size: 1.6rem;
  text-align: center;
}

.smcaps {
  font-variant-caps: all-small-caps;
}

.credits {
  flex-basis: 100rem;
  margin: 2rem 0;
  font-size: 1.85rem;
  line-height: 1.2;
  padding: 1rem;
  
  &__single {
    display: grid;
    grid-template-columns: 1;
    gap: 0 2rem;
    text-align: center;
    
    dt {
      font-variant-caps: all-small-caps;
      margin-top: 1.7rem;
    }
    
    dd {
      margin-top: .6rem;
    }
  }

  &__double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;

    dt {
      text-align: right;
      font-variant-caps: all-small-caps;
      margin-top: 1.7rem;
    }

    dd {
      text-align: left;
      grid-column: 2 / 3;
      margin-top: .6rem;
    }

    dt + dd {
      margin-top: 1.7rem;
    }
  }

  &__inline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.7rem;
    
    li {
      padding: .3rem .8rem;
    }
  }

  &__music {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.7rem;

    dl {
      text-align: center;
      padding: 0 2rem 2rem 2rem;
      flex-basis: 30rem;
    }

    dt {
      font-style: italic;
      margin-bottom: .5rem;
    }

    dd {
      font-size: 1.5rem;
    }
  }
}

footer {
  margin: 3rem;
}


              
            
!

JS

              
                
              
            
!
999px

Console