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">
      <div>
        <img id="header-img" src="https://i.postimg.cc/BZ87VBFJ/rrr.jpg"alt="programer's iamge">
    </div>
      <nav id="nav-bar">
        <ul id="nsa">
          <li><a href="#id1"class="nav-link">Home</a></li>
           <li><a href="#video"class="nav-link">About us</a></li>
           <li><a href="#footer1"class="nav-link">Contact us</a></li>
        </ul>
     </nav>
      
    </header>
    <form id="form" action=" https://www.freecodecamp.com/email-submit)">
      <h1> Join our Staff</h1>
      <input name="email" id="email" type="email" placeholder="Enter your email address" required=""><br><br>
      <input id="submit" type="submit" value="sign up now" class="btn">
    </form>
    
    <main id="ide">
<div>
<h2 id="id1">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 >
<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>
<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>
    </main>

 <iframe style="margin-top:100px; margin-left:400px;" id="video" width="700px" height=" 300px" src="https://www.youtube.com/embed/tgbNymZ7vqY" frameborder="0" allowfullscreen></iframe>
      </iframe>
      <footer  id="footer1">
      
      <ul>
        <li><a href="#header-img">Developred by solomon Girma<a></li<>
      </ul>
    </footer>

   
       

              
            
!

CSS

              
                 .btn :hover {
       color:red;
       
     }

      #nav-bar{
       position:fixed;
        margin-left:50%;
        
        background-color:#eee;
        width:70%;
        height:10%;
        
        
     }
    
     body{
background-color:#eee;
       
     }
      ul
      {
        list-style:none;
      }
      
      #header-img
               {
               margin-right:30%;
                 margin-left:10%;
                  position:fixed;
             
                
               
               }
     
      a
     {
        color:black;
        font-size:20px;
      }
     
      li
     {
        
       display:inline;
        padding-right: 15px;
     
    
      }
     
   a:hover 
        {
   color:blue;
        }
     header
     {
       display:flex;
      
     }
h1{
   margin-left:5%;
}
      
     #form{
       margin-top:10%;
       margin-left:30%;
       
     
       
     }
     #email{
       width:35%;
       height:25%;
       
     }
     #submit{
       width:20%;
       height:40%;
       margin-left:10%;
       color:white;
       background-color:#3b5998;  
     }
     @media only screen and (max-width: 10000px) {
  body {
    background-color: white;
  }
              #video{
           margin-left:400%;
}
    
       @media (max-width: 1050px)
       {
           #form
         {
             margin-top:110px;
                  margin-left:50%;
         }
         #nav-bar{
           margin-left:35%;
           margin-right:90px;
         }   
         #video{
           margin-left:40%;
}
    
         #header-img{
           margin-left:0%;
         }
      }
       #mains
       {
         width:40%;
         height:50%;
        
       }
       #ide{
          margin-top:5%;
         margin-left:20%;
         
       }
       
   #footer1{
         margin-top:100px;
         background-color:gray;
         width:100%;
         height:50px;
         
}
      
    
              
            
!

JS

              
                
              
            
!
999px

Console