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

              
                
<header id="header">
   <nav id="nav-bar"> <ul>
      <li><img id="header-img" src="https://cdn.dribbble.com/users/850083/screenshots/2906199/bunny.png"></li>
        <li><a class="nav-link" href="#features">Products</a></li>
        <li><a class="nav-link" href="#video">Blog</a> </li>
        <li><a class="nav-link" href="#pricing">Magazine</a></li>
     </ul></nav>
  </header>
<br class="container">

  <div class="reg" id="form">
    <br><br><br><br><br><br> <br> 
    <h2>PROUD RABBIT 
    <br>
      Everything Your Bunny Dreams About
    </h2><br><br>
    Start by Signing Up to Our Regular Newsletter and Receive Inspiring Bunny Stories Weekly!
    <br><br>
   <form id="form"> <input id="email" type="email" placeholder="Email" required><br><br>
    <button id="start" id="submit" href="https://www.freecodecamp.com/email-submit">Submit</button>
    </form> <br>
    <br>
    <br>
  </div>
  <div id="features" class="feature">
    <br>
   <div class="col-des"> <h2>  Quality Nutrition</h2>
    <p>Regular Supply of everything a bunny needs for their health.<br></div>
    
   <div class="feature"> <h2>Quick Delivery</h2>
    <p>We make sure you recieve your box with bunny food within 24 hours of placing your order.</p>
    </div>
   
    <div class="feature"><h2>Quality Assurance</h2>
    <p>For every purchase you make, we will ensure there are no damages.</p></div>
  </div>
<br><br>
  <div class="video">
    <iframe id="singlevideo" width="560" height="315" src="https://www.youtube.com/embed/wcF3FKKFtfA" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  </div><br>
  <div id="pricing" class="book">
    <div class="kitab" id="1month">
      <h3>One month worth of hay, granules, vitamines + nutrition information</h3>
      <p class="price">₹ 15.00<p>
      <br><br>
      <button class="shop">Add To Cart <i class="fas fa-shopping-cart"></i></button>
    </div>
    <div class="kitab" id="6months">
      <h3>Six months food supply + Proud Bunny Magazine + Nutrition information</h3>
      <p class="price">₹ 80.00<p>
      
      <br><br>
      <button class="shop">Add To Cart <i class="fas fa-shopping-cart"></i></button>
    </div>
    <div class="kitab" id="year">
      <h3>A Full year of Proud Bunny Food Supply + Proud Bunny Magazine + Proud Bunny Book + Nutrition Information</h3>
      <p class="price">₹ 150.00<p>
      
      <br><br>
      <button class="shop">Add To Cart <i class="fas fa-shopping-cart"></i></button>
    </div>
  </div><br>
  <footer>
    <p>Privacy &nbsp&nbsp Terms &nbsp&nbsp Contact&nbsp<br>
      Copyright &copy 2018, Proud Bunny
    </p>
      
  </footer>
</div>
              
            
!

CSS

              
                

body{
  background-color: #EAEBE5;
  font-family: 'Roboto Slab', serif;
}
.container{
  text-align: center
    
}
.feature {
  margin: auto;
    width: 75%;
    border: 3px solid green;
    padding: 5px;
    
}

header{
  background: wheat;
  background-image:
    radial-gradient(salmon 20%, transparent 0), 
    radial-gradient(salmon 10%, transparent );
  box-shadow: 2px 0px 2px 2px salmon;
  margin: -7px;
  position: fixed;
  width: 100%;
}
ul{
  float: right;
  margin-top: 30px;
  margin-right: 20px;
}
#header-img{
  max-width: 100px;
}
a{
  text-decoration: none;
}

.video {
  max-width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  background-color: lightblue;
}

.singlevideo {
  flex-basis: 30%;
  margin: 20px;
  box-sizing: border-box;
}


li{
  list-style: none;
  display: inline;
  padding: 35px;
}
.reg{
  
  text-align: center;
} 
input{
  height: 25px;
  width: 300px;
  text-align: center;
}
.feature{
  text-align: center;
  padding: 20px;
  
}

h2{
display: inline;
}
.video{
  text-align: center;
}
.shop{
  width: 200px;
  height: 30px;
  font-weight: bold;
  border: none;
  background-color: salmon;
  border-radius: 2px;
}
.shop:hover{
  background-color: lightblue;
  cursor: pointer;
}
#start{
  width: 230px;
  height: 25px;
  font-size: 0.9em;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  background-color: salmon;
}
#start:hover{
  background-color: lightblue;
  cursor: pointer;
}
.book{
  display: grid;
  grid-template-columns: "1fr 1fr 1fr";
  grid-template-rows: auto;
  grid-template-areas:
    "book-1 book-2 book-3";
  text-align: center;
  grid-gap: 150px;
}
#1month{
  grid-area: book-1;
}
#6months{
  grid-area: book-2;
}
#year{
  grid-area: book-3;
}
.kitab{
  border: 2px;
  width: 290px;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 1px 2px 15px 2px black;
}

h3{
  margin-top: 5px;
  border-radius: 5px;
  padding: 10px;
  background-color: lightblue;  
}
.shop{
  width: 200px;
  height: 30px;
  font-weight: bold;
  border: none;
  background-color: salmon;
  border-radius: 50px;
}
.shop:hover{
  background-color: lightblue;
  cursor: pointer;
}
footer{
  margin: 0px;
  padding: 0px;
}
footer{
  background-color: white;
  border-radius: 2px;
  margin-bottom: -6px;
  padding: 10px;
}
footer > p{
  text-align: center;
  font-size: 0.8em;
}
@media screen and (max-width: 1240px){
  header{
  display: grid;
  grid-template-columns: "1fr";
  grid-template-rows: "1fr 1fr";
  grid-template-areas:
    "logo"
    "menu"
    ;
  justify-content: left;
    align-items: self;
    grid-area: header;
  }
  #header-img{
    grid-area: logo;
    margin-left: 70px;
    width: 100%;
  }
  ul{
    grid-area: menu;
    width: 100%;
    float: left;
  }
  li{
    padding: 10px;
  }
  .container{
    display: grid;
  grid-template-columns: "1fr 3fr";
  grid-template-rows: repeat(8, "1fr");
  grid-template-areas:
    "reg reg"
    "collection col-des"
    "delivery del-des"
    "quality qual-des"
    "video video"
    "book book"
    "footer footer"
    ;
   justify-content: center;
  }
  .reg{
    margin-top: 20px;
    grid-area: reg;
  }
  .video{
    grid-area: video;
  }
  .book{
  display: grid;
  grid-template-columns: "1fr";
  grid-template-rows: auto;
  grid-template-areas:
    "book-1"
    "book-2"
    "book-3";
  justify-content: center;
  grid-gap: 50px;
    grid-area: book;
}
  iframe{
    width: 300px;
    height: 200px;
  }
  .xyz{
    padding-left: 10px;
  }
  footer{
    grid-area: footer;
  }
}



@media screen and (   max-width: 480px){
  header{
  display: grid;
  grid-template-columns: "1fr";
  grid-template-rows: "1fr 1fr";
  grid-template-areas:
    "logo"
    "menu"
    ;
  justify-content: left;
    align-items: left;
 }
  #header-img{
    grid-area: logo;
    margin-left: 70px;
    width: 100%;
  }
  ul{
    grid-area: menu;
    width: 100%;
    float: left;
  }
  li{
    padding: 5px;
    display: relative;
    
  }
.container{
  display: grid;
  grid-template-columns: "1fr";
  grid-template-rows: repeat(10, "1fr");
  grid-template-areas:
    "reg"
    "collection"
    "col-des"
    "delivery"
    "del-des"
    "quality"
    "qual-des"
    "video"
    "book"
    "footer"
    ;
   justify-content: center;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console