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

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


<div id="main">
 <header id="header">
   <img src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" id="header-img" alt="#">
  </img>
   <nav id="nav-bar">
     <ul>
       <li><a href="#featured" class="nav-link">Product</a></li>
       <li><a href="#material" class="nav-link">Material</a></li>
       <li><a href="#pricing" class="nav-link">Pricing</a></li>
     </ul>
    </nav>
 </header>
 <div class="container subscribe">
   <h2> Perfectly Handmade Pieces </h2>
    <form action="https://www.freecodecamp.com/email-submit" id="form">
      <input type="email" required name="email" id="email" placeholder="Enter your email address...">
      <input type="submit" id="submit" value="Get started">     
    </form>  
  </div>
  <section id="featured" class="container">
    <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fas fa-fire"> </i>
        <div class="featured-text">
          <h3>Premium Materials</h3>
          <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.
          </p>
        </div>
      </div>
    </div>
     <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fast fa-business-time"> </i>
        <div class="featured-text">
          <h3>Fast Shipping</h3>
          <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>
    </div>
     <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fast fa-battery-three-quarters"> </i>
        <div class="featured-text">
          <h3>Quality Assurance</h3>
          <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>
    </div>
  </section>  
 <section id="material">
  <div>
    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/y8Yv4pnO7qc"></iframe>
  </div>  
</section>
<section id="pricing">
  <div class="container pricing-wrapper">
    <div class="pricing-box">
      <h4>TENOR TROMBONE</h4>
      <p class="price">$600</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <a href="" class="btn">Select</a>
    </div>
    
    <div class="pricing-box">
      <h4>BASS TROMBONE</h4>
      <p class="price">$900</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <a href="" class="btn">Select</a>
    </div>
    
    <div class="pricing-box">
      <h4>VALVE TROMBONE</h4>
      <p class="price">$1200</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <p>Lorem ipsumn</p>
      <a href="" class="btn">Select</a>
    </div>
  </div>
</section>

<footer>
  <div class="footer-nav">
    <ul>
      <li> <a href=""></a>Privacy</li>
      <li> <a href=""></a>terms</li>
      <li> <a href=""></a>Contact</li>
    </ul>
  </div>
  <div class="footer-copyright">
    <p>Copyright 2016, Original Trombones</p>
  </div>
</footer>
 </div>
</main> 


              
            
!

CSS

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}


.contaiiner {
  width: 80%;
  margin: 0 auto;
}


body {
  font-family: sans-serif;
  line-height: 1.5;
}

header {
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  background: #FFF;
  top: 0;
}


nav#nav-bar ul {
  display: flex;
  margin: 0;
  padding: 0 10px;
 }

 nav#nav-bar ul li {
  margin-left: 2rem;
  margin-right: .5rem;
  list-style: none;
}
     
nav#nav-bar ul li a {
  color: #111;
  display: block;
  padding: 0 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  line-height: 50%;
}


@media (min-width: 600px) {
  p {
    flex-direction: column;
  } 
}


#header-img {
  width: 25rem;
  margin-left: -1rem;
  }
 

.subscribe {
  text-align: center;
  margin: 2rem auto;
  }

.subscribe input {
  padding: .2rem;
  display: block;
  margin: 0.9rem auto;
}

.subscribe input#email {
  width: 250px;
  }

.subscribe input#submit {
  width: 150px;
  border: none;
  font-size: .9rem;
  text-transform:  uppercase;
  font-weight: bold;
  background: #f1d53e;
  }

.featured-wrapper {
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
  margin-left: 3rem;
}

.featured-icon {
  font-size: 15px;
}

.featured-text {
  margin-left: 3.5rem;
}

.featured-text h3 {
  font-size: 1.5rem;
}

.featured-text p {
  opacity: 0.5;
  }
  
  #video {
  text-align: center;
  margin: 5rem 0;
  width: 50%;
}

.pricing-wrapper {
  display: grid;
  grid-gap: 2rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: repeat(3, 380px);
  margin-bottom: 5rem;
}

.pricing-box {
  text-align: center;
  line-height: 2.5rem;
  border: 1px solid ;
}

.pricing-box h4 {
  background: #C0C0C0;
  font-size: 1.2rem;  
}

.pricing-box .price {
  font-weight: bold;
  font-size: 1.5rem
}

.pricing-box .btn {
  background: #f1d53e;
  display: block;
  width: 100px;
  margin: 1rem auto;
  text-transform: uppercase;
  color: #000000;
  font-weight: bold;
}

footer {
  background: #ddd;
  text-align: end;
  padding: 1rem .5rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.footer-nav ul li {
  margin-left: 1.5rem;
  font-weight: bold;
} 

.footer-copyright {
  opacity: 0.6;
}

              
            
!

JS

              
                
              
            
!
999px

Console