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

+ add another resource

JavaScript

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

Packages

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.

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

              
                <head>
<link href="https://fonts.googleapis.com/css?family=BioRhyme|Open+Sans" rel="stylesheet">
</head>

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


<header id="header">
  <div class="logo">
    <img src="https://upload.wikimedia.org/wikipedia/commons/0/02/Disque_Vinyl.svg" alt="" id="header-img">
    <h1>Heavyweight Records</h1>
  </div>

    <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>
    </nav>
</header>

<main id="whyus">
    <h2 id="whyus-heading">Why come to us for all of your record collection needs?</h2>
    
    <h3>Passion</h3>
    
    <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>

    
        <h3>Dedication</h3>
    
        <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>

          <h3>Experience</h3>
            
            <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>
            </div>
</main>

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

<div id="new">
  <h2 id="new-link">Here's what's new this week!</h2>
  <ul>
    <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>
  </ul>
</div>

<form action="https://www.freecodecamp.com/email-submit" 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">
  </div>
</form>
  
  </body>
 




              
            
!

CSS

              
                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;
  }
}
              
            
!

JS

              
                

              
            
!
999px

Console