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.

            
              <html>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:300,400,500,700" rel="stylesheet">
  

<header id="header">
  <!--Company Nav start-->
  <div>
    <img id="header-img" src="https://woodcapitol.com/wp-content/uploads/2017/08/hammer-and-nail-on-wood-outline.png"></img>
    <h1 id="company" class="company">Oakwood Furniture</h1>
  </div>
  
  <nav id="nav-bar" class="nav-bar">
    <ul>
        <li>
       <a class="nav-link" href="#process"> Our Process</a>
        </li>
        <li>
         <a class="nav-link" href="#products"> Products</a>
        </li>
        <li>
          <a class="nav-link" href="#contact">Contact us</a>
        </li>
    <ul>
    <nav>
      <!--Company Nav end-->
</header>
      <body>
        <!--Intro Start-->
        <section class="background">
        <div >
          <h2 class="title">Solid Wood Specialists</h2>
           
          </div>
        </section>
          <!--Intro End-->
          
          <!--Process Start-->
        <section id="process" class="process">
          <h3>Process</h3>
            <div class="video" align="center">
              <p>You can learn about the process we use when creating any of our products in the video below.</p>
              <div class="iframe">
                <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/Gh6iFsp3AjQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
            </div>
            </div>
            
        </section>
         <!--Process End-->
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fusce id velit ut tortor pretium viverra suspendisse. Vel pharetra vel turpis nunc eget lorem. Viverra nibh cras pulvinar mattis. Dui nunc mattis enim ut tellus elementum sagittis vitae.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fusce id velit ut tortor pretium viverra suspendisse. Vel pharetra vel turpis nunc eget lorem. Viverra nibh cras pulvinar mattis. Dui nunc mattis enim ut tellus elementum sagittis vitae.</p>
        <!--Products Start-->
        <section >
          
            <h3>Products</h3>
          <div id="products">
            <div  id="product" class="product">
                <div id="coasters">
                    <p class="p">Coasters</p>
                    <p>Price<p>
                    <div id="img">
                  <img class="productImg" 
                   src="http://dma-upd.org/wp-content/uploads/woodworking-scrap-wood-projects-craft-ideas-pinterest_55205-840x450.jpg"/>
                   </div>
                  
                  <div id="btn">
                  <button class="btn">Select</button>
                   </div>
                </div>
            </div>
         
              
            <div id="product"class="product">
            <div id="storage">
              <p class="p">Fancy Storage</p>
              <p >Price:</p>
              <div id="img">
            <img class="productImg" 
                 src="http://cincinnatiques.org/wp-content/uploads/woodworking-gifts-woodoperating-router-four_1602063-840x450.jpg"/>
                </div>
              <div id="btn">
                  <button class="btn">Select</button>
                   </div>
              </div>
            </div>
              
            <div id="product" class="product">
            <div id="candle">
              <p class="p">Candle Storage</p>
                  <p>Price:</p>
                  <div id="img">
                  <img class="productImg" 
                src="https://cfusrug.org/wp-content/uploads/woodworking-projects-christmas-gifts-diy-project_136901-840x450.jpg"/>
                    </div>
              
              <div id="btn">
                  <button class="btn">Select</button>
               </div>
            </div>
            </div>
          
             <div id="product" class="product">
              <div id="bed">
                  <p class="p">Beds</p>
                  <p>Price<p>
                <div id="img">
                  <img class="productImg" 
                   src="http://coriverbasin.org/wp-content/uploads/recycled-wood-projects-search-results-diy-woodworking_158864-840x450.jpg"/>
                  </div>
                <div id="btn">
                  <button class="btn">Select</button>
                   </div>
              </div>
          </div>
          </div>
        </section>
        <!--Products End-->
        
        <!---Contact Start-->
        <section id="contact" class="contactUs">
          <form id="form" action="https://www.freecodecamp.com/email-submit">
            <div>
              
              <h3>Contact Us</h3>
              <p>Any questions regarding our products or you would like a would like something made you can contact us below</p>
              
              <div>
                <label class="label"> Name:- </label>
                <input name="name" id="name" type="name" placeholder="Enter name"/>
              </div>
              
              <div>
                <label class="label">email:- </label>
                <input name="email" id="email" type="email"  placeholder="Enter email address"/>
              </div>
              
                <div id="btn">
                <input id="submit" type="submit" value="Get Started" class="btn" />
                </div>
            </div>
          </form>
        </div>
        </section>
        <!--Contact End-->
      </body>
      
      
      <!--Footer Start-->
<footer id="footer" class="footer">
  
    <span>Copyright &copy; 2018, Original Oakwood Furnature</span>
   <ul>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
</footer>
      <!--Footer End-->
<html>
            
          
!
            
              html, body {
  font-family: 'Libre Franklin', sans-serif;
}

.background{
  background-image: url("https://jhmrad.com/wp-content/uploads/modern-contemporary-wood-house-interior-design-ideas-zeospot_176188-670x400.jpg");
  background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 0;
    height: 100%; 
    padding-top: 10%;
    padding-bottom: 35%;
}

#header-img {
  width: 21%;
  margin-left: 10px;
  margin-right: 15px;
  float:left;
}
header {
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  justify-content: space-between;
  min-height: 100px;
  background-color: #c19b6c;
  align-items: center; 
  /*Setting the Z-index on the header prevents the images further down going infront of the header/nav*/
    z-index: 1;
}

h1{
  color:white;
}

a{
color: inherit;
  text-decoration: none;
}
a:hover{
  color: black;
}
.title{
  text-align: center;
/*   padding-top: 15%; */
  color: white;
  font-size: 2em;
  font-weight: 500;
}
.first{
 color:white;
 font-weight: 400;
}
* {
  margin: 0;
  box-sizing: border-box;
}
i{
   padding-top: 15px;
}

li {
  color:white;
  list-style: none;
  display: inline-block;
  padding-left: 10px
}

#products {

  display: flex;
flex-direction: row;
.product {
  padding: 10px;
  // display: flex;
  // flex-direction: row;
  justify-content: center;
    
  #coasters, #storage, #candle, #bed{
  border: 1px solid silver;
  border-radius: 3px;
  max-width: 400px;
  max-height: 600px;
  min-width: 350px;
  flex-direction: column;
  display: flex;
  width: calc(100%  / 4);
    background-color: silver;
     
 @media (max-width: 800px) {
 flex-direction: column;
    
    #coaster, #storage, #candle, #bed { max-width: 300px; width: 100%; margin: 0 auto; margin-bottom: 10px; }
  }
}    
}
}
  .productImg{
  border-radius: 8px;
  border:2px solid black;
  width: 80%;
  
}
#img {
  margin-left: 10px;
  // z-index: -1;
}
img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
  width: 30%;
  
}

img:hover {
	-webkit-transform: scale(0.9);
	transform: scale(0.8);
}

p{
  padding: 10px 10px 10px 10px;
  
}
#video{

  display: block;
}

.iframe {
  padding: 20px;
}
.video{
  padding: 20px;
}
h3{
  padding: 20px;
  text-align: center;
}
.contactUs {
  background-color:#ffa500;
/*   border: 5px solid black; */
  padding: 30px;
  text-align: center;
}


.label{
  display: inline-block;
  padding-right: 10px;
}

#name, #email {
  padding: 10px 16px;
}

button{
  padding: 5px;
}
.btn {
  background-color:#c19b6c; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
}
#btn {
  padding: 10px;
  
}
#submit {
  background-color:#c19b6c; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
}

.footer {
/*   padding: 10px 10px; */
  padding-left: 20px;
  padding-right: 20px;
} 
footer {
  display: flex;
/*     bottom: 0; */
    background-color: #c19b6c;
    justify-content: space-between;
   min-height: 80px;
/*   height: 100px; */
  padding-top: 30px;
  padding-bottom: 30px;
}
            
          
!
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