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

              
                <html>
<h1 id="title">Pizza Survey</h1>
<div id="form-outer">
  <p id="description">
    Let us know your interest about the best food EVER
  </p>
  <form id="survey-form" id="name" id="email" id="number">
    <div class="rowTab">
      <div class="labels">
        <label id="name-label" for="name">Name</label>
      </div>
    <div class="rightTab">
      <input type="text" name="name" id="name" class="input-field" placeholder="Enter your name" required>
      </div>
    </div>
    <div class="rowTab">
      <div class="labels">
      <label id="email-label" for="email">Email</label>
    </div>
    <div class="rightTab">
      <input type="email" name="email" id="email" class="input-field" placeholder="Enter your Email" required >
    </div>
  <div class="rowTab">
    <div class="labels">
      <label id="number-label" for="age">Age</label>
    </div>
    <div class="rightTab">
      <input  type="number" name="age" id="number" min="1" max="125" class="input-field" placeholder="Age">
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label for="currentPos">¿Do you like Pizza?</label>
    </div>
    <div class="rightTab">
      <select id="dropdown" name="currentPos" class="dropdown">
        <option disabled value>Select an option</option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
      </select>
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label for="userRating">¿When was the las time you ate Pizza?</label>
    </div>
    <div class="rightTab">
      <ul style= "list-style: none;">
        <li class="radio"><label>Last week<input name="radio-buttons" value="1" type="radio" class="userRatings"></label></li>
        <li class="radio"><label>Last month<input name="radio-buttons" value="2" type="radio" class="userRatings"></label></li>
        <li class="radio"><label>Can't Remember when<input name="radio-buttons" value="3" type="radio" class="userRatings"</label></li>
      </ul>
    </div>
  </div>
  <div class="rowTabs">
    <div class="labels">
      <label for="most-like">¿Where do you regularly buy your Pizza from?</label>
    </div>
    <div class="rightTab">
      <select id="most-like" name="mostLike" class="dropdown">
        <option disabled selected value>Select an option</option>
        <option value="Local Pizzeria">Local Pizzeria</option>
        <option value="Pizza chain">Pizza chain</option>
        <option value="Supermarker">Supermarker</option>
        <option value="I make my own">I make my own</option>
      </select>
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label for="preferences">Things that you like in your Pizza:<br>(You can ckecked more than 1 option)</label>
    </div>
    <div class="rightTab">
      <ul id="preferences" style="list-style: none;">
        <li class="checkbox"><label><input name="prefer" value="1" type="checkbox" class="userRatings">Pepperoni</label></li>
        <li class="checkbox"><label><input name="prefer" value="2" type="checkbox" class="userRatings">Ham</label></li>
        <li class="checkedbox"><label><input name="prefer" value="3" type="checkbox" class="userRatings">Italian sausage</label></li>
        <li class="checkbox"><label><input name="prefer" value="4" type="checkbox" class="userRatings">Beef</label></li>
        <li class="checkedbox"><label><input name="prefer" value="5" type="checkbox" class="userRatings">Onions</label></li>
        <li class="checkbox"><label><input name="prefer" value="6" type="checkbox" class="userRatings">Mushrooms</label></li>
        <li class="checkbox"><label><input name="prefer" value="7" type="checkbox" class="userRatings">Green peppers</label><li>
        <li class="checkbox"><label><input name="prefer" value="8" type="checkbox" class="userRatings">Black olives</label></li>
        <li class="checkbox"><label><input name="prefer" value="9" type="checkbox" class="userRatings">Pork</label></li>
        <li class="checkbox"><label><input name="prefer" value="10" type="checkbox" class="userRatings">Bacon</label></li>
        <li class="checkbox"><label><input name="prefer" value="11" type="checkbox" class="userRatings">Extra Cheese</label></li>
      </ul>
    </div>
  </div>
  <div class="rowTabs">
    <div class="labels">
      <label for="comments">Tell us about your favorite Pizza:</label>
    </div>
    <div class="rightTab">
      <textarea id="comments" class="input-field" style="height: 115px; resize:vertical;" name="comment" placeholder="I won't judge If you like pineapple"></textarea>
    </div>
  </div>
  <button id="submit" type="submit">Submit</button>
  </form>
</div>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</html>
    
      
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Varela+Round');

html, 
body {
  text-align: center;
  font-family: 'Varela Round', sans-serif;
  min-width: 320px;
}
body {
  background: url("https://st2.depositphotos.com/5616164/10660/v/950/depositphotos_106600452-stock-illustration-pizza-seamless-pattern-delicious-slice.jpg");
}
h1 {
  font-size: 65px;
  font-color: #e73838;
}
header {
  font-size: 2em;
  font-weight: bold;
  margin: 20px;
}

#form-outer {
  background-color: rgb(250, 250, 250);
  margin: 0 auto;
  border-radius: 4px;
  width: 75%;
  max-width: 900px;
  padding: 10px;
  padding-top: 20px;
}

.labels {
  display: inline-block;
  text-align: right; 
  width: 40%;
  padding: 5px;
  vertical-align: top;
  margin-top: 10px;
}

.rightTab {
  display: inline-block;
  text-align: left;
  width: 48%;
  vertical-align: middle;
}

.input-field {
  height: 20px;
  width: 280px;
  padding: 5px;
  margin: 10px;
  border: 1px solid #000000;
  border-radius: 2px;
}

#userAge {
  width: 40px;
}

.userRatings,
input[type="checkedbox"] {
  float: left;
  margin-right: 5px;
}

#submit {
  background-color: #e57171;
  border-radius: 4px;
  color: white;
  font-size: 2em;
  heigh: 40px;
  width: 120px;
  margin: 10px;
  border: 0px solid;
}

.dropdown {
  height: 35px;
  width: 140px;
  padding: 5px;
  margin: 10px;
  margin-top: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

.radio .checkbox {
  position: relative;
  left: -43px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
}

button:hover {
  transform: scale (2.1);
  
}

@media screen and (max-width: 833px) {
  .input-field {
    width: 80%;
  }
  select {
    width: 90%;
  }
}

@media screen and (max-width: 520px) {
  .labels {
    width: 100%;
    text-align: left;
  }
  .rightTab {
    width: 80%;
    float: left;
  }
  .input-field {
    width: 100%;
  }
  select {
    width: 100%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console