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> 
  <div id="container">
    <header id="header">
      
      <h2 id="top">The Courier's Music Lessons</h2>
      <img id="header-img" class="top-left" src="https://images.ctfassets.net/3s5io6mnxfqz/2tgKAE2XKmpgAlZqoSxRW/ed92236cb34d77fff34fbcefb1a5f805/AdobeStock_187055739.jpeg" alt="The Courier's Music Store Company Logo">
      
      <nav id="nav-bar" class="small-nav">
        <ul>
          <li><a class="nav-link" href="#vocals">Vocals</a></li>
          <li><a class="nav-link" href="#guitar">Guitar</a></li>
          <li><a class="nav-link" href="#piano">Piano</a></li>
          <li><a class="nav-link" href="#drums">Drums</a></li>
          <li><a class="nav-link" href="#pricing">Pricing</a></li>
        </ul>
      </nav>
      
     </header>
      <div id="info">
      <h3 class="customer-email" id="slogan"><em>Quality Lessons From Home</em></h3>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <input 
                 type="email"
                 id="email"
                 name="email"
                 class="customer-email" 
                 placeholder="Enter Your Email To Get Started!"
                 required/>
          <input 
                 id="submit" 
                 type="submit" 
                 value="Lets Get to Learning!"/>
          
          
        </form> 
       <div id="sub-header">
         
        <h4 id="tech">Breathing Techniques for Singing</h4>
        <p id="description"><em>(Just an example of what would be discussed during a vocal lesson)</em></p>
        <section id="vid">
       
         
          <iframe id="video"
                  width="560" 
                  height="315" 
                  src="https://www.youtube.com/embed/5djAyb8STOs" 
                  frameborder="0" 
                  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" 
                  allowfullscreen>
            </iframe>
         </section>
            
       </div>
      </div>
<!-- nav bar links are going in there respective area here!-->
      <section id="links-area">
        <h4 id="vocals" class="relative-links">Vocal Training</h4>
        <p id="link-description">Singing! Something I've loved to do ever since I joined choir in high school. I was trained as a classical musician for 2 years and I loved every <br>moment of it. I personally love to sing classical music arranged by Roger Quilter and folk music from artists like Tim Buckley, Bob Dylan, and <br>my favorite Bert Jansch. The fundamentals of singing apply to all genres so when you're ready let me know and we can start thing journey together!  </p>
        <img 
             id="relative-link-picture"
             src="https://magazine.magix.com/en/wp-content/uploads/sites/3/2017/12/backing-vocals-720x320.jpg"
             alt="black and white picture of a microphone"/>
      </section>
      
      <section id="links-area">
        <h4 id="guitar" class="relative-links">Guitar Lessons</h4>
        <p id="link-description"> The first instrument I ever learned how to play, my favorite, The Guitar. Ever since I was 14, I have played the guitar on a daily basis. The <br>guitar is famous for a reason, in my opinion, it's because the combination of sounds are limitless. Ok yes, there's a limit of 2,048 combinations but,<br> within that space is room for musicians to roam free and express however they're feeling. The guitar is still my favorite instrument to this day. </p>
        <img 
             id="relative-link-picture"
             src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSl-QtmdOD6GVgrap7AJL8Js93PWaSNC21Ryw&usqp=CAU"
             alt="black and white picture of an acoustic guitar lying down"/>
      </section>
        
      <section id="links-area">
        <h4 id="piano" class="relative-links">Piano Lessons</h4>
        <p id="link-description">People say once you have learned the piano, you could learn to play any instrument, and that saying couldn't be farther from the truth. The <br> piano itself is a visual representation of music theory at it's simplest form. The wealth of knowledge gained from learning the piano will give you a <br> guaranteed head start musically. Listen to many of Mozart's piano sonatas and you'll see how the piano can be used at your whim!</p>
        <img 
             id="relative-link-picture"
             src="https://data.whicdn.com/images/3530165/original.jpg"
             alt="black and white picture of a grand piano"/>
      </section>
        
      <section id="links-area">
        <h4 id="drums" class="relative-links">Drum Lessons</h4>
        <p id="link-description">Have you ever wondered how Travis Barker does it? It's simple, Practice. Practice on hand eye coordination and getting in tune with the physical<br> rhythms of your body movemennt. Ever since the dawn of time, people have been hitting drums with about anything we have around. The transfer<br> of energy from your body to beat on the drums is the oldest form of music. The drums helps you manipulate rhythm in other instruments as well. </p>
        <img 
             id="relative-link-picture"
        src="https://images.fineartamerica.com/images/artworkimages/mediumlarge/1/drumsticks-and-drums-in-black-and-white-rebecca-brittain.jpg"
             alt="black and white picture of a snare drum with drum sticks"/>
      </section> 
    
      <section id="links-area">
        <h4 id="pricing" class="relative-links">Pricing</h4>
        <p id="link-description">I appreciate that you have come to embark on this learning journey with me. ALL of my lessons range from $30-$40 per 45 minute session. <br>Although, First Time Customers will get their first lesson for just $20! This first lesson will be 30 minutes and every single one after 45 minutes. <br>To get started just put your email up top and submit! I am so excited to see you and thank you for choosing me to help you learn music!<br> Best - Armando Ortiz Jr - The Courier's Music Lessons</p>
        <img 
             id="relative-link-picture"
             src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQyxtRV00vfyVO3zdyqasm9lNrFPpaCVGbzjw&usqp=CAU"
      </section>      
        
    
      
  
    
    
       
  </div>
              
            
!

CSS

              
                
#header-img {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  transform: scale(0.3);
  position: relative;
  bottom: 360px;
  right: 535px;
}

body {
  background-image: linear-gradient(to right, #000017, #b5651d, #000017); 
}

h2 { 
  color: white;
  transform: scale(1.5);
  position: relative;
  left: 480px;
}

nav {
  z-index: 1;
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
}

li {
  display: inline;
  padding: 50px;
  font-size: 18px;
  position: relative;
  left: 1100px;
}

a {
  color: white;
}

h3 {
  text-align: center;
  position: relative;
  bottom: 1020px;
  transform: scale(1.1); 
}

.customer-email {
  text-align: center;
  position: relative;
  bottom: 1020px;
  transform: scale(1.1);
}

#slogan {
  transform: scale(1.5);
}

#email {
  text-align: center;
  position: relative;
  left: 850px;
  padding: 5px;
  border-radius: 15px;
}

#submit {
  position: relative;
  bottom: 975px;
  left: 670px;
  transform: scale(1.1);
  
}

iframe {
  position: relative;
  bottom: 900px;
  left: 670px;
}

h4 {
  text-align: center;
  position: relative;
  bottom: 900px;
  transform: scale(1.2)
} 

#description {
  text-align: center;
  position: relative;
  bottom: 900px;
  transform: scale(1.2)
}

#sub-header {
  position: relative;
  bottom: 50px;
}

#info {
  position: relative;
  bottom: 10px;
}

.relative-links {
  color: white;
  transform: scale(1.9);
}

#relative-link-picture {
  height: 200px;
  width: 350px;
  position: relative;
  bottom: 900px;
  left: 300px;
  margin: 10px;
}

#link-description {
  color: white; 
  text-align: left;
  position: relative;
  bottom: 800px;
  left: 900px;
  transform: scale(1.2);
}
/*for phonees*/
@media only screen and (max-width: 815px) {
  nav {
  z-index: 1;
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 20;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  }
  
  ul {
    position: relative;
    right: 1085px;
  }
  
  li {
  display: inline;
  padding: 1px;
  font-size: 18px;
  position: relative;
  bottom: 1200px;
}
  
  #vid {
    position: relative;
    right: 750px;
  }
  
  #container{
    transform: scale(0.6);
    position: relative;
    top: 20px;
  }
  
  #top {
    position: relative;
    bottom: 1100px;
    right: 900p; 
  }
  
  header {
    position: relative;
    right: 430px;
  }
  
  form {
    position: relative; 
    right: 755px;
    top: 20px;
  }
  
  #tech {
    position: relative;
    left: 15px;
   
  }
  
  #info {
    position: relative;
    bottom: 270px;
  }
  
  .relative-links {
    position: relative;
    bottom: 1200px;
  }
  
  #relative-link-picture {
    position: relative;
    bottom: 1450px;
    left: 15px; 
  }
  
    p {
    position: relative;
    right: 300px;
  }
}



              
            
!

JS

              
                
              
            
!
999px

Console