css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <script src=https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js></script>
<html>
  <head>
    <title>Fresh juices</title>
    
    <header id="header">
      

     <div class="logo">
        <img id="header-img" src="https://cdn.shopify.com/s/files/1/1509/7254/products/5_a48e2170-0cb8-4aed-8ce3-17495c511da5_1400x.jpg?v=1534506114"alt="healthy juice">
       <h1>All Seasons'Fresh Juice</h1>
         <nav id="nav-bar">
  <ul>
    <li><a class="nav-link" href="#Description">Description</a></li>
    <li><a class="nav-link" href="#Juices">Juices</a></li>
    <li><a class="nav-link"href="#Pricing and orders">Pricing and orders</a></li>
  </ul>
      </nav>
       
      
      </div>
    </header>
    <div class="container">
      
      <section id="Description">
        <h2>Description</h2>
          <iframe id="video"
            src="https://www.youtube.com/embed/s6lIcPXz23E" >
                                                 </iframe>
           
       
        <p>Fruit Juice Contains Vitamins, Minerals and Antioxidants, But It Lacks Fiber and Is Loaded With Sugar. Fruit juice is missing a lot of the stuff that makes whole fruit healthy. Orange juice, for example, does contain Vitamin C and is a decent source of folate, potassium and Vitamin B1 </p>
        <img src="https://www.archanaskitchen.com/images/archanaskitchen/1-Author/Archana_Doshi/homemade-fresh-orange-juice-recipe.jpg"alt="fresh orange juice">
      </section>
    
      <section id="Juices">
        <h2>Juices</h2>
        <div class="Juices">
        <img src="https://www.archanaskitchen.com/images/archanaskitchen/1-Author/Archana_Doshi/homemade-fresh-orange-juice-recipe.jpg" alt="">
        <p>Orange Juice</p>
        </div>
     <div class="Juices">
       <img src="https://cdn.cpnscdn.com/static.coupons.com/ext/kitchme/images/recipes/600x400/healthy-green-juice_26121.jpg"alt="">
       <p>Green Juice</p>
        </div>
        <div class="Juices">
          <img src="http://images.media-allrecipes.com/userphotos/960x960/3758397.jpg"alt="">
          <p>Tomato-Vegetable</p> <p>lettuce, chives, tomatoes, jalapeno, bell pepper, celery and carrot </p>
        </div>
        <div class="Juices">
          <img src="http://images.media-allrecipes.com/userphotos/960x960/3758395.jpg"alt="">
          <p> Ginger-Beet Juice</p>
        </div>
        <div class="Juices">
          <img src="http://images.media-allrecipes.com/userphotos/960x960/3758394.jpg"alt="">
          <p>Carrot-Orange Juice</p>
          </section>
        <section id="Pricing and orders">
          <h2>Pricing and orders</h2>
          <div class="Pricing and orders">
            <ul id="Pricing and orders"style="list-style:none">
              <li><input type="checkbox"name="pricing"id="small"value="1">
                <label for="small">Small $5.00</label>
              <input type="number"name="amount"id="number"min="0"max="100"class="input field"placeholder="amount"required>
              </li>
              <li><input type="checkbox"name="pricing"id="medium"value="2">
                <label for="medium">Medium $6.00</label>
                <input type="number"name="amount"id="number"min="0"max="100"class="input field"placeholder="amount"required>
              </li>
              <li><input type="checkbox"name="pricing"id="large"value="3">
                <label for="Large">Large $7.00</label>
                <input type="number"name="amount"id="number"min="0"max="100"class="input field"placeholder="amount"required>
              </li>
            </ul>
          </div>
        </section>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
        <div class="info">
      <input type="text"name="name"id="name"class="input field"placeholder="Enter your name"required>
      </div>
     <div class="info">
      <input id="email"name="email"type="email"placeholder="Enter your email"required>
      </div>
          <input type="submit"name="submit"id="submit"class="btn"value="Order">
 
        </form>
        <hr>
        <footer>
          <a href="#">Contact</a>
          <a href="#">Feedback</a>
          <a href="#">Privacy</a>
        </footer>
          
          
            
          
!
            
              
header{
  top: 0;
  width: 100%;
  display: flex;
  flex-direction:row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  background-color: #f8f2e8;
  height:30%;
}
#header-img{
float:left;
width:25%;
  height:20%;
display:flex;
  position:relative;
  margin:0 auto;
 
}
h1{
 
  font-family: 'Sofia', cursive;
  font-size:50px;
  margin-left: 300px;
}
#nav-bar{
  float:right;

}


#video{
  margin-top:200px;
  height:200px;
  width:300px;
}
li{
    display: inline;
  margin: 30px;
  font-family: "comfortaa",sans-serif; 
  font-size: 1.2em;
}

section{
  text-align:center;
}
img{
  height:300px;
  width:400px;
}
#video {
  text-align: center;
  padding: 40px 0;
}
h2{
  font-family: 'Sofia', cursive;
  font-size: 40px;
}
p{
  font-size:20px;
    font-family: 'Sofia', cursive;
}
label{
    font-size:25px;
    font-family: 'Sofia', cursive;
}

input[type="text"]{
   max-width: 275px;
   width: 100%;
   padding: 5px;
   height: 24px;
   border-radius: 9px;
  font-family: "comfortaa";
  position:relative;
  margin:0 auto;
  display:flex;
}

input[type="email"] {
   max-width: 275px;
   width: 100%;
   padding: 5px;
   height: 24px;
   border-radius: 9px;
  font-family: "comfortaa";
  position:relative;
  margin:0 auto;
  display:flex;
  }

input[type="submit"] {
    max-width: 150px;
    width: 100%;
  border-radius:50%;
  position:relative;
  margin:0 auto;
  display:flex;
  font-size:20px;
  padding-left:40px;
}
footer{
  display:inline;
  padding-left:550px;
  
}
@media(max-width: 100%){
  header{
    height:42%;
  }
  h1{
    text-align:center;
  }
  nav-bar{
    align-items:center;
  }
  }

            
          
!
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.
Loading ..................

Console