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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<header id="header">
  
  <!-- Logo -->
  <div class="logo">
    <img id="header-img" src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" alt="original trombones logo">
  </div>
  <!-- Nav Bar -->
  <nav id="nav-bar"<ul>
    <li><a class="nav-link" href="#features">Features<a></li>
      <li><a class="nav-link" href="#video">How it Works</a></li>
    <li><a class="nav-link" href="#pricing">Pricing</a></li>
    </ul>
  </nav>

</header>

<!-- Greeting -->
<div id="greeting">
  <h2>Handcrafted, home-made masterpieces</h2>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <div class="email">
    <input id="email" name="email" type="email" placeholder="Enter your email address" required>
    </div>
    <input id="submit" class="submit-button" type="submit" value="Get started">
  </form>
</div>

<!-- Features -->

<div id="features">
  <div class="description">
    <h2>Premium Materials</h2>
    <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  </div>
  <div class="description">
    <h2>Fast Shipping</h2>
    <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
  </div>
  <div class="description">
    <h2>Quality Assurance</h2>
    <p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
  </div>
</div>

<!-- How it Works -->
<div class="video">
  <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/y8Yv4pnO7qc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>

<!-- Pricing -->
<div id="pricing">
  <div id="tenor">
    <div class="trombone-header">
      <h3>Tenor Trombone</h3>
    </div>
    <h3>$600</h3>
    <ul class="trombone-description">
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
    <button class="select-button">Select</button>
  </div>
  <div id="bass">
    <div class="trombone-header">
      <h3>Bass Trombone</h3>
    </div>
    <h3>$900</h3>
    <ul class="trombone-description">
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
    <button class="select-button">Select</button>
  </div>
  <div id="valve">
    <div class="trombone-header">
      <h3>Valve Trombone</h3>
    </div>
    <h3>$1200</h3>
    <ul class="trombone-description">
      <li>Plays similar to a trumpet.</li>
      <li>Great for jazz contexts.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
    <button class="select-button">Select</button>
  </div>
</div>

<footer id="footer">
  <ul class="footer-links">
    <li><a class="foot-link" href="#">Privacy<a></li>
      <li><a class="foot-link" href="#">Terms</a></li>
    <li><a class="foot-link" href="#">Contract</a></li>
  </ul>
  <p class="copyright">Copyright 2016, Original Trombones</p>
</footer>

</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300");

body {
  font-family: "Open Sans Condensed", sans-serif;
  background-color: #b7cacc;
}

img {
  width: 400px;
  max-width: 100%;
}

@media (max-width: 700px) {
  img {
    width: 300px;
    padding-right: 55px;
  }
}

li {
  list-style: none;
  padding: 1em;
  font-size: 1.2rem;
  line-height: 2px;
}

@media (max-width: 450px) {
  li {
    font-size: 16px;
  }
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: #f4f6f9;
}

p {
  font-size: 20px;
  margin-top: 0px;
}

h2 {
  margin-bottom: 5px;
}

vid {
  max-width: 100%
}

#header {
  position: fixed;
  top: 0;
  background-color: rgba(183, 202, 204, 0.9);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

@media (max-width: 700px) {
  #header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
  }
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#nav-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 30px;
}

#greeting {
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

input[type="email"] {
  padding: 5px;
  width: 180px;
  margin-top: 15px;
  margin-bottom: 10px;
  background-color: #f4f6f9;
}

input[type="submit"] {
  width: 100px;
  margin: 10px;
  margin-bottom: 30px;
}

#features {
  width: 72%;
  margin: auto;
  background-color: #f4f6f9;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 15px;
}

.description {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video {
  display: flex;
  justify-content: center;
  padding: 40px;
  margin-bottom: -10px;
}

@media (max-width: 700px) {
  .video {
    width: 80%;
  }
}

#pricing {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

@media (max-width: 700px) {
  #pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

#tenor,
#bass,
#valve {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f4f6f9;
  width: calc(100%  / 3);
  margin: 15px;
  border-radius: 15px;
  padding-bottom: 10px;
}

@media (max-width: 700px) {
  #tenor, #bass, #valve {
    width: 50%;
  }
}

.trombone-header {
  background-color: #c1c1c1;
  width: 100%;
  border-radius: 15px 15px 0px 0px;
  font-weight: bold;
}

.trombone-description {
  display: flex;
  flex-direction: column;
  margin-left: -35px;
  margin-top: -10px;
}

#footer {
  background-color: rgba(183, 202, 204, 0.9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

@media (max-width: 700px) {
  #footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
  }
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding-left: 20px;
}

.copyright {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 30px;
}

@media (max-width: 700px) {
  .copyright {
    padding-left: 45px;
  }
}





              
            
!

JS

              
                
              
            
!
999px

Console