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 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

              
                

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<!DOCTYPE html>
<html>
  
  <script src="https://kit.fontawesome.com/ccf75107bb.js" crossorigin="anonymous"></script>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>


      <div class="container"> 
         
        <header id="header">
     
             <nav id="nav-bar">  
        <div class="logo"><img id="header-img" src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" alt="original trombones logo"/>
          </div>
             
          
       <ul>
  <li><a  class="nav-link" href="#features">Features</a></li>
  <li><a class="nav-link" href="#how-it-works">How It Works</a></li>
  <li><a class="nav-link" href="#pricing">Pricing</a></li>
   </ul> 
       
   </nav>
        </header>
        
  <body>
     <h2 class="a">Handcrafted, home-made masterpieces</h2>
      <section class="form">   
       <form action="https://www.freecodecamp.com/email-submit" id="form">
     <input type="email" style="font-size:20px;" id="email" name="email" placeholder="Enter your Email:" required><br> 
  <input class="btn" type="submit" id="submit" value="GET STARTED">     
      </form>
        </section><br><br>
        
        
  
         <section id="features">
         
       <h3 class="btn-a info">F E A T U R E S</h3>
        <div class="grid">
    <div class="icon"><i class="fab fa-5x fa-affiliatetheme" style="color:#f33;"></i>
        </div>
         <div class="material">
         <h2>Premium Materials</h2>
        <p>Our trombones use the shiniest brass which is sourced locally. This increases the longevity of your purchase.</p>
     </div> 
         <div class="icon"><span class="fab fa-5x fa-aviato" style="color:#f33;"></span></div> 
         <div class="shipping">
           <h2>Fast Shipping</h2>
      <p>We make sure you receive your Trombone as soon as we have finished making it. We also proveide free returns if you are not satisfied. </div>   
      <div class="icon"><span class="fab fa-5x fa-asymmetrik" style="color:#f33"></span></div>
  <div class="assurance">
    <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.
          </div>
          
          </div>
      </section><br>    
        <section id="how-it-works">
           <h3 class="btn-a warning">H o w It W o r k s</h3>
          <div id="grid">
           
    <iframe id="video" width="600" height="350" src="https://www.youtube.com/embed/mJaX4ZpfULM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 
           
            </div>
            </section><br><br>
                 
           <section id="pricing">
      <h3 class="btn-a success">P r i c i n g</h3> 
       <p class="c"><i>For Pricing, There are three categories of Trombones:</i> &nbsp &nbsp <b>i. <u>Tenor Trombones</u> &nbsp&nbsp &nbsp ii. <u>Bass Trombones</u> &nbspand &nbsp&nbsp &nbsp iii. <u>Valve Trombones.</u></b></p>
           
  <div id="flex-container">
             <div class="tenor">
              <h4><i> Tenor Trombones</i></h4>
          <h5>$600</h5>
               <ol class="desc">
           <li>Lorem ipsum.</li>
           <li>Lorem ipsum Quartz.</li>
            <li>Lorem ipsum Marbel.</li>
            <li>Lorem ipsum Nova.</li>
                 
               </ol>
     <button class="btn">S E L E C T</button>                  
             </div>
       <div class="bass">
         <h4><i>Bass Trombones</i></h4>
         <h5>$900</h5>
             <ol class="desc">
            <li>Lorem ipsum Brass </li>
            <li>Lorem ipsum Nova.</li>
            <li>Lorem ipsum Marvel.</li>
            <li>Lorem ipsum Blue.</li>
               </ol>
      <button class="btn">S E L E C T</button>                           </div>
    <div class="valve">
      <h4><i>Valve Trombones</i></h4>
      <h5>$1200</h5>    
      <ol class="desc">
            <li>Plays like a Trumpet. </li>
            <li>Ideal for Jazz Bands </li>
                 <li>Lorem ipsum Gold.</li>
        <li>Lorem ipsum Boss.</li>
          </ol>
      <button class="btn">S E L E C T</button>
         </div>  
             </div>         
        
         </section>
               <div id="footer">
        <ul>
        <li><a href="#privacy">Privacy</a></li>
        <li><a href="#terms">Terms</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
        </div><br><br>      
      <h5 class="c">Copyright 2016, Original Trombones</h5><br>
   </div>
   </body>          
  </html>
          

      
              
            
!

CSS

              
                


<meta name="viewport" content="width=device-width, initial-scale=1.0">
 .container {
     
  width: 1000vw; 
   Margin: 0;
  padding: 0; 
  position: relative;
}
   body {
  background-color: #eee;
     top: 0;
     left: 0px;
     bottom: 0px;
     margin: 50px;
}

@media only screen and (max-width: 825px) {
  body {
    background-color: pink;
  }
}      


 #header-img {
   position: relative;
   height: 30px;
   border: 2px solid green;
   border-radius: 5px;
   background: yellow;
    margin: 15px 200px;
    display: flex;
   justify-content: flex-start;
  padding: 2px;
  
}
#header-img:hover {
       background: orange;
  
}
.grid {
    display: grid;
   justify-content: center;
   grid-template-columns: 150px 850px;
  grid-template-rows: 150px 150px 150px;
     grid-height: 450px;
  background-color: #f1f1f1;
  grid-gap: 2px;
  padding: 5px;
}
  .icon {    
     display: grid;
  align-content: center;
} 
.grid > div h2 {
  text-align: left;
  margin-top: 10px;
}
#grid {
  display: grid;
   justify-content: center; 
  margin: 25px;
}
#flex-container {
  display: flex;
  background-color: #f1f1f1;
  justify-content: center;
  flex-wrap: nowrap;
}
#flex-container div {
  background-color: dodgerblue;
   flex-direction: row;
  color: white;
  text-align: center;
  justify-content: center;
    width: 270px;
  font-size: 1.2em;
  border: 1px solid black; 
border-radius: 5px;
    height: 280px;
  margin: 15px;
    }
 ol li {
   display: flex;
   margin: 3px auto;
}



ol {
  list-style-type: none;
   }     
   h4 {
      margin: 10px;
  font-size: 1.2em;
     font-weight: 300;
  font-family: Ariel, sans-serif;
}
  h5 {
       margin: 10px;
      font-size: 1.1em;
      font-weight: 300;
}
header {
     display: flex;
  flex-direction: row;
    align-items: ;
  position: relative;
}
  @media only screen and (max-width: 825px) {
    header {
      flex-direction: column;
    }
}
nav {
     display: flex;
    flex-direction: row;
      justify-content: flex-end;
     position: fixed;  
   background-color: #eee;
    height: 50px;
    top: 0;      
    left: 0;
   width: 95%;
}
@media only screen and (max-width: 825px) {
  nav {
      display: flex;
   flex-direction: column;
     background-color: lightblue;
    margin: 0px;
  }
}
nav ul {
  list-style-type: none;
  margin-right: 20px;
   margin-top: 7px;
    display: flex; 
  overflow: hidden;
}

 nav ul li {
  float:;
}
nav ul li a {
  display: flex;
   text-decoration: none;
  margin-left: 50px;
   align-items: center;
   color: #333;
  padding: 2px 10px;
  font-size: 1.3em;
}
nav ul li a:hover{
  background: #333;
   color: white;
   border-radius: 3px;
} 
h2.a {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 30px;
  font-family: verdana;
}

h3 {
    text-align: center;
   font-weight: 300;
    font-size: 1.4em;
 
}

.btn-a {
       border: 2px solid red;
       color: white;
     Padding: 8px 8px;
      width: 170px;
       margin: 0 auto;
      border-radius: 5px;

} 
.info {background-color: #2196F3;}
.warning{background-color: #ff9800;}
.success{background-color: #4CAF50;} 

     #email  {
       display: block;
       margin: auto;
       border: 2px solid green;
       padding: 5px;
       width: 300px;
       height: 20px;
        border-radius: 5px;
       }       
 .btn {
   display: block;
     margin: 10px auto;
    font-size: 1.2rem;
   font-family: sans-serif;
  padding: 5px 10px;
  width: 150px;
  height: 35px;
   border: 2px solid red;
        border-radius: 5px;
   background: gold;
    cursor: pointer;
    color: #000;
}
.btn:hover {
  background: #003153;
    color: white;
}
p {
   font-size: 20px;
   margin: auto;
  }
p.c {
      text-align: center;
  }

#footer > ul {
   list-style-type: none;
     display: flex;
        width: 350px;
      margin: 5px 15px;
      float: right;
     }
#footer  ul  li a {
text-decoration: none;
  justify-content: ;
  color: #000;
    padding: 5px 15px;
    font-size: 1.2em;
  border-radius: 5px;
     }
#footer  ul  li a:hover {
   background-color: #111;
    color: white;
}
h5.c {
     float: right;
   width: 350px;
  padding: 2px;
   font-size: 0.9em;
  font-family: Cursive;
  color: red;
  margin: 0 5px;
   } 
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to compfemaillete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console