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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


<link href="|Open+Sans" rel="stylesheet">

  <div class="background"></div>

<header id="header">
  <div class="logo">
    <img src="" alt="" id="header-img">
    <h1>Heavyweight Records</h1>

    <nav id="nav-bar">
        <a href="#whyus-heading" class="nav-link">Why Us</a>
        <a href="#video-link" class="nav-link">This Week's Link</a>
        <a href="#new-link" class="nav-link">What's New</a>

<main id="whyus">
    <h2 id="whyus-heading">Why come to us for all of your record collection needs?</h2>
    <div class="reasons">
    <i  id="icon" class="far fa-heart"></i>
    <p>Our staff care about music just as much as you, and that dedication sets us apart from our competition</p>

        <div class="reasons">
        <i  id="icon" class="fas fa-people-carry"></i>
        <p>Our commitment to the optimum customer experience is without limits!</p>

            <div class="reasons">
            <i id="icon" class="fas fa-glasses"></i>
            <p>We've been doing this for quite some time, and that will be reflected in your experience with us.</p>

<h2 id="video-link">Our Link of the Week: Optimizing Your Vinyl Experience!</h2>
<iframe id="video" width="560" height="315" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

<div id="new">
  <h2 id="new-link">Here's what's new this week!</h2>
    <li>We just purchased a collection with lots of rare NWOBHM classics!</li>
    <li>We have a mint copy of The Mars Volta's <em>Deloused at the Comatorium</em>! Call for price!</li>
    <li>Watch this space for this year's 4th of July clearance sale selections!</li>

<form action="" id="form">
    <h3>Sign up for our email newsletter!</h3>
    <div class="signup">
    <input type="email" id="email" name="email" placeholder="Your email address">
    <input type="submit" id="submit" value="Submit">



                html, body {
  font-family: 'BioRhyme', serif;
  margin: 0;
  padding: 0;

iframe, form {
  display: block;
  margin: 0 auto;

iframe {
  margin-bottom: 12rem;

a {
  color: #fff;
  text-decoration: none;
  margin: .3rem .8rem;

a:hover {
  background-color: white;
  color: #002db3;
  padding: 4px;

h1 {
  color: #fff;
  letter-spacing: 1.5px;

 h2#video-link {
  text-align: center;
main {
  padding-bottom: 30px;


nav {
  display: flex;
  align-items: center;
  flex-direction: column;
   padding-top: .4rem;
   padding-right: 2.5rem;
p, a, li {
  font-family: 'Open Sans', sans-serif;

#header {
  background-color: #002db3;
  position: fixed;
  padding-left: 1rem;
  top: 0;
  left: 0;
  width: 100vw;

#header, .logo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

#icon {
  margin-top: 18px;
  margin-right: 10px;

#header-img {
  height: 50px;
  margin-top: 12px;
  margin-left: 6px;
  margin-right: 4px;

#whyus {
  padding-top: 150px;

#whyus, #new, #form {
  max-width: 40%;
  display: block;
  margin: 10px auto 12rem auto;
  padding-left: 10px;

.reasons {
  background-color: #678cf9;
  display: flex;
  flex-direction: row;
  padding-left: 8px;

.signup {
  display: block;
  margin: 5px auto;
  max-width: 50%;

@media screen and (min-width: 800px) {
  nav {
    flex-direction: row;