123

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="header">
  <header id="header">
    <div class="img-head">
    <img id="header-img" src="https://imgurl.ir/uploads/s009148_.png" alt="owl shaped ice cream">
    </div>
    <div>
      <div class="star"></div>
      <div class="star2"></div>
    </div>
    <div class="nav">
      <nav id="nav-bar">
        <ul>
          <li class="li">
            <a class="nav-link" class="nav-link1" href="#types">
              Types
            </a>
          </li>
          <li class="li">
            <a class="nav-link" class="nav-link2" href="#price">
              Price
            </a>
          </li>
          <li class="li">
            <a class="nav-link" class="nav-link3" href="#footer">
              About Us
            </a>
          </li>
        </ul>
      </nav>
    </div>
  </header>
</div>
<div class="main">
  <h1>We Have The Best Ice Cream</h1>
  <br>
  <div id="types">
    <div class="chocolate">
      <img id="icec" src="https://images.food52.com/8ti1Dll73IhVAiIAZY-C01yNRmo=/1200x675/ad0a5aeb-c9e3-4ba2-877e-266f33c06b76--food52_02-19-13-0043.jpg" alt="chocolate ice cream">
      <p class="chocp">You may think its it's a simple chocolate ice cream<br> but its made of buffalo milk that's super fatty.Yuuuum</p>
    </div>
    <div class="saffron">
      <img id="icec" src="https://foodtech-files.s3-eu-west-2.amazonaws.com/ba18e70747dc060cc5a6559816a8d53167abfdc081245642cda7d71681b418e3" alt="saffron ice cream">
      <p class="saffp">Our saffron ice cream is one of the kind.a Persian ice cream<br> with pistachio that drive you crazy</p>
    </div>
    <div class="cake">
      <img id="icec" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR74bTqonKfCQVxZMx29UL39QzwLtoNwwEWQepNsnamAMUe9dV1zQ" alt="cake ice cream roll">
      <p class="cakep">This delecious chocolate cake that's filles with<br> vanilla ice cream is one of our famous.Try it love it</p>
    </div>
  </div>
  <div class="video">
    <h3>Our vanilla ice cream recepie for free:</h3>
    <section class="video-sec">
      <iframe id="video" width="100%" src="https://www.youtube.com/watch?v=pFVK4lZJqsI" controls allowfullscreen></iframe>
    </section>
  </div>
  <div id="price">
    <div class="chocopr">
      <form class="chocoform">
        <div class="chocoformdiv">
          Topping:<br>
          <input type="radio" id="saff" name="topping" value="saffron">
          <label for="saff">Saffron</label><br>
          <input type="radio" id="piss" name="topping" value="pistacho">
          <label for="piss">Pistachio</label>
        </div>
        <button type="submit" class="submit">
          Chocolate 2$
        </button>
      </form>
    </div>
    <div class="saffpr">
      <form class="saffform">
        <div class="saffformdiv">
          Topping:<br>
          <input type="radio" id="saff" name="topping" value="saffron">
          <label for="saff">Saffron</label><br>
          <input type="radio" id="piss" name="topping" value="pistacho">
          <label for="piss">Pistachio</label>
        </div>
        <button type="submit" class="submit">
          Saffron 5$
        </button>
      </form>
    </div>
    <div class="vanipr">
      <form class="vaniform">
        <div class="vaniformdiv">
          Topping:<br>
          <input type="radio" id="saff" name="topping" value="saffron">
          <label for="saff">Saffron</label><br>
          <input type="radio" id="piss" name="topping" value="pistacho">
          <label for="piss">Pistachio</label>
        </div>
        <button type="submit" class="submit">
          Vanilla 1$
        </button>
      </form>
    </div>
  </div>
  <div class="form">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <label class="form-label" for="email">
        if you want to know about our new product type your Email:<br><br>
        <input id="email" type="email" name="email" placeholder="Enter Your Email" required>
      </label>
      <input id="submit" type="submit">
    </form>
  </div>
  <div id="footer">
    <footer>
      <p>We are a group of dairy industry trying to reach our goal that is making the best product in the market blah blah blah</p>
    </footer>
  </div>
</div>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Chewy&display=swap');
* {
  box-sizing: border-box;
  flex-wrap: wrap;
}
body {
  max-width: 100%;
  background-color: #9a137a;
  position: relative;
  height: 500px;
  margin: 0;
}
ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
}
img {
  width: 300px;
  height: 95px;
  position: relative;
  left: 20px;
  border-radius: 15px;
}
header {
  position: fixed;
  width: 100%;
  display: flex;
  border-radius: 10px;
  z-index: 2;
  background-color: #d91cac;
  box-shadow: 0px 10px 5px 0px rgba(0,0,0,0.37);
}
.nav {
  width: 45%;
}
a:hover {
  font-family: Chewy;
}
a {
  font-size: 20px;
  font-family: verdana, serif;
  text-decoration: none;
  color: black;
}
.img-head {
  width: 45%;
}
.li {
  background-color: #3A90C1;
  padding: 5px;
  border-radius: 10px;
}
.main {
  background-color: #3A90C1;
  max-width: 95%;
  margin: auto;
  border: 1px solid green;
  position: relative;
  top: 120px;
  border-radius: 50px;
}
.video {
  margin: auto;
  width: 40%;
}
h1 {
  text-align: center;
  font-family: Chewy, verdana;
  font-size: 35px;
}
h3 {
  font-family: Chewy, verdana;
  text-align: center;
}
#submit {
  font-family: Chewy;
}
#submit:hover {
  background-color: #3A90C1;
}
.form-label {
  font-family: Chewy;
}
.form {
  margin: auto;
  text-align: center;
}
#email {
  font-family: Chewy;
  width: 15%;
}
#form {
  margin-top: 30px;
}
#types {
  max-width: 97%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 12px;
}
#icec {
  height: 10rem;
  border: 1px solid black;
}
.saffp {
  text-align: center;
  font-family: Chewy;
  font-size: 17px;
}
.chocp {
  text-align: center;
  font-family: Chewy;
  font-size: 17px;
}
.cakep {
  text-align: center;
  font-family: Chewy;
  font-size: 17px;
}
#price {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 30px;
}

.chocopr {
  width: 20%;
  border: 2px solid green;
  border-radius:  10px;
  text-align: center;
}
.chocoform {
  margin-left: 90px;
  font-family: Chewy;
}
.chocoformdiv {
  text-align: justify;
}
.saffpr {
  width: 20%;
  border: 2px solid green;
  border-radius:  10px;
  text-align: center;
}
.saffform {
  margin-left: 90px;
  font-family: Chewy;
}
.saffformdiv {
  text-align: justify;
}
.vanipr {
  width: 20%;
  border: 2px solid green;
  border-radius:  10px;
  text-align: center;
}
.vaniform {
  margin-left: 90px;
  font-family: Chewy;
}
.vaniformdiv {
  text-align: justify;
}
.submit {
  margin-right: 80px;
  font-family: Chewy;
  font-size: 20px;
  background-color: #d91cac;
}
#footer {
  text-align: center;
  font-family: Chewy;
  font-size: 20px;
  position: relative;
  top: 10px;
}
.star {
  background-color: #9a137a;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  animation-iteration-count: infinite;
  margin-top: 15%; 
  margin-left: 60%;
  animation-duration: 1s;
  animation-name: twinkle;
  position: relative;
  right: 36.5rem;
  top: 34px;
}
@keyframes twinkle {
    20% {
      transform: scale(0.1);
    }
  }
.star2 {
  background-color: #9a137a;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  animation-iteration-count: infinite;
  margin-top: 15%; 
  margin-left: 60%;
  animation-duration: 1s;
  animation-name: twinkle;
  position: relative;
  right: 34.9rem;
  top: 11px;
}
@keyframes twinkle {
    20% {
      transform: scale(0.1);
    }
  }
@media (max-width: 1000px) {
  body {
    max-width: 100%;
  }
}
            
          
!
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