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 class="main">
  
  <header id="header">
    
    <img id="header-img" src="https://morecorp.co.za/themes/custom/morecorp_theme/images/logo.png" alt="logo">
   <nav class="nav" id="nav-bar">
    <ul>
  <li><a class="nav-link"   href="#feature">Feature</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>   
     <h1 id="how-it-works">How it works</h1>
    </nav>

    
    
    
  </header>
  
  <div class="container subscribe">
    
    
    <h2>JoinTherush home-made masterpieces</h2>
    <form id="form" action=" https://www.freecodecamp.com/email-submit" >
      
      <input name="email" id="email" type="email" placeholder="Enter Your Email Address" required/>
      <input id="submit" type="submit" value="Subscribe" class="btn"></input>
    </form>
  </div>
  
  <section id="feature" class="cointainer">
    
    <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fas fa-fire"></i>
           </div>
      <div class="featured-text">
        <h3> Premium Stock</h3>
        <p>We Offer the Widest Range Of Cycling Products Under One Roof. CycleLab Offers A 30-day Money-Back Guarantee.</p>
      </div>
      </div>
           
    <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fas fa-Truck"></i>
           </div>
      <div class="featured-text">
        <h3> Realible Shipping</h3>
        <p>We make sure you recieve your order as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
      </div>
      </div>
    
    
   <div class="featured-wrapper">
      <div class="featured-icon">
        <i class="fas fa-battery-two-quaters"></i>
           </div>
      <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 quality of your instrument.</p>
      </div>
      </div> 
    
  </section>
  
  < section id= "video">
    
    <iframe id="video"src="https://www.youtube.com/embed/283sIFEa4qY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen > </iframe>
    
    </section>
   
  <setion id="pricing">
    
    <div class="container pricing-wrapper">
      
      <div class="pricing-box">
        <h4>Speedster Junior Helmet</h4>
        <p class="price">R599</p>
        <p>Bulit in visor</p>
        <p>Funky design</p>
        <p>Adjustable size dial</p>
        <p>Comfortable fit</p>
        <a href="" class="btn">Select</a>
      </div>
      
      
      <div class="pricing-box">
        <h4>Pro Thermo Bibshorts</h4>
        <p class="price">R1999</p>
        <p>Ergonomic multi-panel construction</p>
        <p>Reflective trm</p>
        <p>Raw edge grip hem with silicone grip</p>
        <p>fabric with PFC Free DWR M</p>
        <a href="" class="btn">Select</a>
      </div> 
      
      <div class="pricing-box">
        <h4>Combination Lock 180mm</h4>
        <p class="price">R199</p>
        <p>4 Digit Combination</p>
        <p>User-set Code</p>
        <p>Braided Steel Cable</p>
        <p>Amped Combination</p>
        <a href="" class="btn">Select</a>
      </div>  
    </div>
    </section>
  <footer>
    
    <div class="footer-nav">
      <ul>
  <li><a href="">Privacy</li>
  <li><a href="">Terms and conditions</li>
  <li><a href="">Contact</li>
      </ul>
    </div>
    
    <div class="footer-copyright">
      
      <p>Copyright 2016, Original Troycycles</p>
    </div>
  </footer> 
  </div>

              
            
!

CSS

              
                
#{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
ul{
  list-style:none;
  
}
a{
  text-decoration:none;
}
.container{
  width:80%;
  margin: 0 auto;
}
body{
  font-family:sons-serif;
  line-height:1.8;
  background-color:yellow;
}
#header{
  padding: 1.4rem 3rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:fixed;
  top:0px;
}
nav#nav-bar ul {
  display:flex;
  display:block;
  text-align:center;
}

nav.nav-bar ul li {
  margin-left: 2rem;
}

nav#nav-bar ul li a {
  color:red;
}




#header-img{
  width:25rem;
  margin-left: -1rem;
  margin: 1rem 0;
  text-align:center;
  
  
}

@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
  }
    
  }
.subscribe{
  text-align:right;
  margin: 3rem auto;
  
}
.subscribe input{
  padding: .3rem;
  display:block;
  margin: 0.9rem auto;
  
}
.subscribe input#email{
  width:250px;
  
  
}
.subscribe input#input{
  width:150px;
  border:none;
  font-size: 1rem;
  text-transform:uppercase;
  font-weight:bold;
  background:blue;
}
.featured-wrapper{
  display:flex;
  align-items:center;
  margin-top: 2rem;
}
.featured-text {
  margin-lef: 3.6rem;
}
.featured-text h3 {
  font-size: 1.4rem;
}
featured-text p {
 opacity: 0.8;
}
@media only screen and (max-width: 600px) {
  .featured-wrapper {
    flex-direction: column;
  }
  .featured-text{
    margin:0;
    text-align:center;
  }
}
section#video{
  text-align:center;
  margin: 5rem 0;
  
}
.pricing-wrapper{
  display:grid;
  grid-gap: 2rem;
  align-items:center;
  justify-content:center;
  grid-template-columns: repeat auto-fit,minmax(200px,1fr)); grid-auto-rows:(repeat(3,300px);
    margin-bottom: 5rem;
  
}
.pricing-box {
  text-align:center;
  line-height: 2.5;
  border: 1px solid black; 
  
}
.pricing-box h4{
  background: blue;
}
.pricing-box .price{
  font-weight: bold;
  font-size: 1.5rem;
  
}

.pricing-box .btn{
  background:#f1c53e;
  display:block;
  width:150px;
  margin: 1rem auto;
  text-transform: uppercase;
  color: yellow;
  font-weight: bold;
  
}
footer{
  background:#ddd;
  text-align:center;
  padding: 1rem. 5rem;
}

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

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

.footer-nav ul li a {
  color:red;
}
.footer-copyright{
  opacity: 0.5;
}

}

 


              
            
!

JS

              
                
  - 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