Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
  



<div class="container">
  <header id="header"> 
       <div class="navi">
      <nav  id="nav-bar" class="flex-nav">
        <ul>
          <li><a href="#home" class="nav-link">HOME</a></li>
          <li><a href="#about" class="nav-link">ABOUT</a></li>
          <li><a href="#product" class="nav-link">PRODUCT</a></li>
          <li><a href="#contact" class="nav-link">CONTACT</a></li>
        </ul> 
      </nav>
 </div>
    <div class="logo">
      <img src="https://cdn.shopify.com/s/files/1/2334/7895/files/Marley_Logomark_Horizontal_87d02978-5564-41d3-849c-133d1fa14d37_x250.png?v=1504712318" class="img-fluid" id="header-img">
    </div>
    
    
  </header>
  
  
  <section class="banner" id="home">
    <iframe width="100%" height="315" id="video" src="https://www.youtube.com/embed/BJvMdMmOh9g" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  </section>
  
  <div class="form_section">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <table>
        <tr>
          <td>
          <input type="email" placeholder="SUBSCRIBE TO OUR NEWSLETTER" id="email" name="email" class="form-control">
          </td>
        </tr>
        <tr>
          <td>
           <input type="submit" id="submit" class="btn btn-primary">
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>

<!-- about Starts-->
<div id="about">
  <div class="main_heading">
    <h2 class="text-center">ABOUT US</h2>
  </div>
  <div class=" container desc">
    <p class="text-center">House of Marley is built on the principles of superior quality, sustainability and a commitment to charitable causes. We are driven to enhance lives through great product experiences as well as using proceeds from product sales to support global reforestry through our foundation, Project Marley.</p>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-md-4  ab_desc">
      <img src="https://www.thehouseofmarley.com/media/houseofmarley/about/sound.jpg">
      <p>Our high-performance audio products are engineered to deliver the Marley "Signature Sound" that pours out all the energy, emotion and detail of every recording.</p>
    </div>
    <div class="col-md-4 ab_desc">
      <img src="https://www.thehouseofmarley.com/media/houseofmarley/about/materials.jpg">
      <p>House of Marley products are crafted from mindfully sourced materials including bamboo, FSC™ certified wood, recycled aluminum, plastic and fabrics. </p>
    </div>
    <div class="col-md-4 ab_desc">
      <img src="https://www.thehouseofmarley.com/media/houseofmarley/about/commitment.jpg">
      <p>House of Marley believes in the importance of trees and the benefits they provide to our Mother Earth. When you purchase a House of Marley product, you help plant one tree. </p>
    </div>
  </div>
</div>
<!-- about Ends-->

<!-- products section starts-->
<div class="container">
  
  <div class="main_heading">
    <h2 class="text-center">OUR PRODUCTS</h2>
  </div>
  
  <div class="products" id="product">
      <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_positive_vibration_em-jh011_dn_1.png">
        <br>
        <h5>Positive Vibration</h5>
        <p>ON EAR HEAD PHONES</p>
        <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/n/e/nesta_1000x1000px_3.png">
        <br>
        <h5>Nesta</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_01_smile_jamaica_em-je041-cp.png">
        <br>
        <h5>Smile Jamaica</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_voyage_bt_em-fe053-sb_1.png">
        <br>
        <h5>Voyage BT</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
  </div>
  
   <div class="products">
      <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_positive_vibration_em-jh011_dn_1.png">
        <br>
        <h5>Positive Vibration</h5>
        <p>ON EAR HEAD PHONES</p>
        <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/n/e/nesta_1000x1000px_3.png">
        <br>
        <h5>Nesta</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_01_smile_jamaica_em-je041-cp.png">
        <br>
        <h5>Smile Jamaica</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_voyage_bt_em-fe053-sb_1.png">
        <br>
        <h5>Voyage BT</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
  </div>
  
   <div class="products">
      <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_positive_vibration_em-jh011_dn_1.png">
        <br>
        <h5>Positive Vibration</h5>
        <p>ON EAR HEAD PHONES</p>
        <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/n/e/nesta_1000x1000px_3.png">
        <br>
        <h5>Nesta</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_01_smile_jamaica_em-je041-cp.png">
        <br>
        <h5>Smile Jamaica</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
    
    <div class="single_product">
        <img src="https://www.thehouseofmarley.com/media/catalog/product/cache/15/small_image/180x/9df78eab33525d08d6e5fb8d27136e95/h/e/hero_voyage_bt_em-fe053-sb_1.png">
        <br>
        <h5>Voyage BT</h5>
        <p>IN EAR HEAD PHONES</p>
      <a href="#" class="btn btn-primary">BUY NOW</a>
      </div>
  </div>
</div>

<!-- products section starts-->

<!-- contact Starts -->

<div id="contact">
  <iframe src="https://www.google.com/maps/embed?pb" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>  
</div>

<!-- contact ends -->
            
          
!
            
              .container{
  display:flex;
  flex-direction:column;
}

.navi{
  background-color:#fff; 
  //align-self: flex-start;
  position:fixed;
  width:100%;
  display:block;
  z-index:999;
  
}

.logo{
  margin-top:15vh;
  margin-bottom: 5vh;
}

.flex-nav{
  padding:1%;
  width:100%;
}

.flex-nav ul{
  display:flex;
}

.flex-nav li{
  flex:1;
  list-style: none;
}

.flex-nav li a{
  color:#000;
}



.form_section{
  display:flex;
  justify-content:center;
}

#form{
 padding:40px; 
 text-align:center;
}

#email{
  margin-bottom:20px;
}
#submit{
  padding:10px 50px;
}

.ab_desc{
  
  text-align:center;
}

.products{
  display:flex;
  flex-wrap: wrap; 
}

.single_product{
  text-align:center;
  flex:1;
  border: 1px solid #ccc;
  padding: 5%; 
}

.single_product img{
  margin-bottom:30px;
}

.nav-link a{
  color:#000 !important;
}
.nav-link a:hover{
  color:#000 !important;
  text-decoration:none;
}

#contact {
  margin-top:20px;
}

@media only screen and (max-width: 600px) {
    .nav-link {
       padding: 0.5rem;
  }
  .flex-nav li {
     flex: 0; 
}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console