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

   <header id="header">
   <nav id="nav-bar">
    
       <img id="header-img" src="https://i.pinimg.com/736x/03/f9/7f/03f97f74b33fe73803584e8ec25c22a7.jpg" alt="header image">
       
       <label class="logo-text">EDC GOAT</label>
       <input type="checkbox" id="check">
       <label for="check" class="checkbtn">
         <i class="fas fa-bars"></i></label>
    <ul>
     
   <li><a class="active" href="#">Home</a></li>
      <li><a  href="#about" class="nav-link">About</a></li>
       <li><a href="#video" class="nav-link" >Video</a></li>
      <li><a href="#pricing" class="nav-link">Products</a></li>
      
      
     </ul>
         
      </nav>
     </header> 
      
       
   <section>
        
     
  
    
  
  
  <body>
   
   
     
     <form id="form" action="https://www.freecodecamp.com/email-submit">
       
     <label for="email" class="email-text"> subscribe to our newsletter  below:</label>
     <input type="email" id="email" name="email" placeholder="Enter your email.">
       <input id="submit" type="submit" value="submit" >
     </form>
 
<div class="container" id="about">
  <h1> High quality steel </h1>
  <p>our steel is directly sourced from the bohler plant located in germany.It undergoes high quality heat treatment and is forged by our senior blacksmith alloyed with top quality materials our steel is without a doubt undestructable </p>
  
  <h1> Fast shipping</h1>
  <p> partnered with over 6 global courier companies our knives are ensured to reach you within 24hrs t's and c's apply.</p>
    
  <h1> quality assurance</h1>
  <p> we guarantee the finest blades with the sharpest edges .Our blades come with a lifetime warranty! not happy with our blade? we offer 100% of your money back no questions asked.</p>
     </div>
     
     <!-- Start of Embedded Video -->
     <div >
    <iframe id="video" width="50%" height="350" src="https://www.youtube.com/embed/apDVzg1X9eQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" >
           </iframe>
       
       </div>
    <!-- End Of Embedded Video -->
     
     <!-- Start of Product Range-->
     <section id="pricing">
       <div id="damascus">
       <h3 class="knife">damascus steel knives</h3>
 
       <img src="https://i.pinimg.com/564x/90/1a/98/901a98cdd7e4b9b2c7f04a631114f242.jpg" class="display-img" alt="damascus knife">
 <button class="btn">Select</button>
  </div>
  
  <div id="flip">
       <h3 class="knife">flip knives</h3>

       <img src="https://i.pinimg.com/originals/3d/79/3a/3d793a8894ca339280c234d46f2de597.jpg" class="display-img" alt="flip knife">
    <button class="btn">Select</button>
  </div>

      
 <div id="kitchen">
       <h3 class="knife">kitchen knives</h3>
          
       <img src="https://www.kitchenstuffplus.com/media/catalog/product/cache/1/image/650x/040ec09b1e35df139433887a97daa66f/9/6/96227_10000_j-a-henckels-international-forged-accent-chef-knife-combo-set-of-3.jpg" class="display-img" alt="kitchen knife">
         <button class="btn">Select</button>
  </div>

 
       
       
       
       
       
         
     </section>
     <!-- End Of Product Range-->
     
     
     
     
    
       
       
       
 </body>   
       
  <div class="footer">     
 <footer>
 
  <ul>
    <li>Privacy</li>
    <li>Contact</li>
    <li>Terms & Conditions</li>
    <li>Shipping Policy </li>
    
  </ul> 
  
     </footer>
    </div>
    </section>
         
         </html>
  
              
            
!

CSS

              
                *{
  padding:0;
  margin:0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}



.logo-text{
  color:white;
  line-height:0vw;
  Font-size:6vw;
  font-weight:bold;
  padding:0 2vw;
  text-shadow:2px 0px 1px  black;
  position:relative;top:-9vw; left:30vw;
}

nav{top:0;
  background:orange ;  
  height:15vw;
  width:100%;
  position:fixed;
  border:solid;
  z-index:2;

  
}
nav ul{
  float:right;
  margin-right:0.5vw;
}
nav ul li {
  display:inline-block;
  line-height:23vw;
  margin:0 0.3vw;
  
}
nav ul li a{color:white;
font-size:1.38vw;
 text-transform: uppercase;
  padding: 7px 13px;
  border-radius:3px;
  position:relative;top:0vw;left:-20vw;
  
}

a.active,a:hover {
 background:black;
  transition: .5s;
  
}
.checkbtn{
  font-size:8vw;
  color:red;
  float:right;
  line-height:14vw;
  margin-right:3vw;
  cursor:pointer;
  display:none;
}
#check{
  display:none;
}




header{ display:box;
background-color:gray;
width:100%}

img{width:100%;
height:60vw}
  






section{
  background:url(https://wallpaperaccess.com/full/1674687.jpg)  no-repeat ;
  background-size:cover;
  height: 100%;
  
  
    
}

iframe{margin:3vw 0 0vw 24vw;}

body{ margin:12vw 0vw 0vw 0vw;
 
}

#form{padding:7vw 0vw 9vw 9vw;
font-size:4vw;

  
}
input{position:relative;
  top:4vw;
  right:40vw;
font-size:2vw;}
 


.container{margin:0vw 10vw 0vw 10vw;}



#header-img{width:15vw;
height:14.6vw;
}

.display-img{width:15vw;
height:15vw;}

#pricing{display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: space-between; 
  width: 80%;
  margin-top:5vw;
  margin-left: auto;
  margin-right: auto;
margin-bottom:5vw;}

#damascus, #flip, #kitchen{ display: flex;
  
  flex-direction:column ;
  justify-content: space-between;
  width: 30%;
  border-style: solid;
  border-radius: 1%;
  text-align: center;
  align-items: center;
  border-width: thin;}

.knife{background-color: orange;
  font-size: 1.4em;
  width: 100%;}

.btn{background:gray;
border:solid;
margin:2vw;
padding:1vw 2vw;
  font-size:1.5vw;}

.btn:hover{background:orange;}



.footer{height:5vw;
width:100%;
background:orange;}

footer ul { 
  display: grid;
  grid-template-rows:  1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  margin:2vw 0vw 0vw 0vw;
}


footer ul li{display:column;
  padding:0.5vw ;
  margin:0vw 3vw 0vw 2vw;
 
}







/* MEDIA QUERIES */ 

@media (max-width:952px){
  
  nav ul li a{ font-size:1.5vw;
  }
  nav ul li{padding-right:0px;
  margin:}
 
}

@media (max-width:800px){
  
  .logo-text{position:relative; top :-5vw; left:27vw;}
  .email-text{font-size:10vw;
  font-weight:bold;}
  #form{}
  input{position:relative;top:3vw; left:2vw;
  font-size:5vw}
  #about{font-size:4.5vw;}
  iframe{width:95%;
  margin:6vw 2vw 0vw 2vw;}
   
  .checkbtn{ display:block;}
  ul{position:fixed;
  width:100%;
  height:100vh;
  background:rgb(0 ,0 ,0, 0.94);
  top:80px;
  left:-100%;
  text-align:center;
  transition:all .5s
  }
  nav ul li{
    display:block;
    margin:50px 0;
    line-height:30px;
  }
  nav ul li a{
    font-size:20px;
  }
  a:hover,a.active{background:none;
  color:gray;}
  
  .logo-text{font-size:8vw;
  margin:0 -20vw  ; }

  

#check:checked~ul{left:0px;}
  
  .display-img{width:35vw;
height:35vw;
  margin:2vw;}
  
  #pricing{display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between; 
  width: 80%;
  margin-top:5vw;
  margin-left: auto;
  margin-right: auto;
margin-bottom:5vw;}

#damascus, #flip, #kitchen{ display: flex;
  margin:2vw 0vw 0vw 0vw;
  
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  border-style: solid;
  border-radius: 1%;
  text-align: center;
  align-items: center;
  border-width: thin;}

}
















              
            
!

JS

              
                <div class="box">
  <header id="header" >
 <img id="header-img" src=https://i.pinimg.com/474x/03/f9/7f/03f97f74b33fe73803584e8ec25c22a7.jpg alt="logo" />
      <h1> EDC&nbspGOAT</h1>


              
            
!
999px

Console