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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <form action="#" method="post">
  <h1>Order Your Pizza</h1>
  
  <div class="column">
    <label for="your_name">Your Name</label>
    <input type="text" id="your_name" name="yourname"/>
    
    <label for="your_email">Email Address</label>
    <input type="email" id="your_email" name="youremail" />
    
    <label for="your_phone">Phone Number</label>
    <input type="tel" id="your_phone" name="yourphone" />
    
    <label for="address">Delivery Address</label>
    <textarea id="address" name="youraddress" ></textarea>
    
    <label for="notes">Notes to driver</label>
    <textarea id="notes" name="drivernotes"></textarea>
    
</div>
   
  <div class="column">
    <label for="crusttype">Choose Your Crust</label>
    <select id="crusttype" name="crust">
    <option value="wheat">Wheat</option>
    <option value="white">White</option>
    <option value="thin">Thin Crust</option>  
    </select>
    
    <label>
    <input type="checkbox" name="extracrispy" />
    Extra Crispy Crust?    
    </label>
    
    <!-- use fieldset to group related inputs -->
    <fieldset>
    <legend>Cheese:</legend>
    <label>
    <input type="radio" name="cheese" value="less" />
      Less Cheese
    </label>
    <label>
    <input type="radio" name="cheese" value="extra"/>
      Extra Cheese
    </label>
    <label>
    <input type="radio" name="cheese" value="none" />
      No Cheese
    </label>
    </fieldset>
    
    <fieldset>
    <legend>Toppings (choose as many as you want)</legend>
    <label>
    <input type="checkbox" name="toppings" value="pepperoni"/>
      Pepperoni     
    </label>
    <label>
   <input type="checkbox" name="toppings"  value="veggies"/>
      Veggies      
   </label>
     <label>
   <input type="checkbox" name="toppings"  value="ham"/>
     Ham    
   </label>
     <label>
   <input type="checkbox" name="toppings"  value="sausage"/>
      Sausage      
   </label>
    
    </fieldset>
    <input type="submit" value="Give me PIZZA" />
    <input type="reset" value="Start Over" />
  </div>
  
</form>
              
            
!

CSS

              
                html{
  background-color: wheat;
}

body{
  background-color:white;
  font-family: Rockwell, Georgia, serif;
    max-width: 1000px;
  width:90%;
  margin: 0 auto;
  box-shadow: 4px 4px 8px rgba(0,0,0.15)
}
h1{
  background-color: tomato;
  color: white;
  text-align: center;
  padding:6px;
}
.column{
  width:50%;
  float:left;
  padding:2%;
  box-sizing:border-box;
}
.column{
  padding:3%;
}
/*clear-fix the parent of column because it collapsed!  */
form:after{
  content:'';
  display:block;
  clear:both;
}

/* FORM STUFF BEGINS HERE */
form{
  font-size:110%
}
label{
  display:block;
  color:saddlebrown;
  margin:16px 0 3px;
}
fieldset label{
  display:inline-block;
  font-size:85%;
  font-family: Calibri, sans-serif;
}


input[type=text],
input[type=email],
input[type=tel],
textarea,
select{
  width:100%;
  padding:5px;
  box-sizing:border-box;
  background-color:cornsilk;
  border: solid 1px tan;
  font-family:'Lucida Console', monospace;
}
textarea{
  resize: vertical;
  min-height: 70px;
}
fieldset{
  border:none;
  margin:20px 0 ;
  padding:10px 0;
  border-bottom: 1px solid tan;
}
legend{
  color:white;
  background-color:tan;
  display:block;
  width:100%;
  padding:3px;
}
input[type=checkbox]{
  background-color:red;
  border: solid 1px red;
  color:red;
  outline:red;
}
/* BUTTONS */
input[type=submit]{
  background-color:forestgreen;
  color:white;
  border:none;
  padding: 6px 20px;
  font-size:110%;
  border-radius:10px;
  font-family: Rockwell, georgia, serif;
}
/* Reset Button: minimize the appearance */
input[type=reset]{
  background-color:transparent;
  border:none;
  text-decoration:underline;
  cursor:pointer;
  margin:20px 0;
  color:olive;
}

/* hovers and tabs */
input[type=text]:hover,
input[type=email]:hover{
  background-color:khaki;
}
input[type=text]:focus,
input[type=email]:focus{
  outline: 2px solid tan;
}
input[type=sumbit]:hover,
input[type=submit]:focus{
  background-color:limegreen;
}
/* responsive bonus round */
@media screen and (min-width:450px){
/*  2col  */
  .column{
    width:50%;
    float:left;
    padding:3%;
    box-sizing:border-box;
  }
}











              
            
!

JS

              
                
              
            
!
999px

Console