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

              
                <body class="super-container">
  <h1 id="title">Survey</h1>
  <p id="description">Tell us how it's going at CodePlanet</p>
    
    <!-- beginning of the form that requests personal info-->
  
    <div class="container">
    <form>
      <div class = "outer">
      <label>* First Name:</label>
      </div>
      <div class = "outer">
        <input id = "firstname" type= "text" name= "firstname" description="Inputs first name of the user"/>
      </div>
      
      <br> <div class = "outer"><label>* Last Name:</label></div>
      <div class = "outer">
      <input id = "lastname" type="text" name = "lastname" description = "Inputs last name of the user"/>
      </div>
      
      <br><div class = "outer"><label>* Email:</label></div>
      <div class = "outer">
      <input id = "email" type="email" name="email" description="Inputs email address of the user"/>
      </div>
      
      <br> <div class = "outer"><label>* Age:</label></div>
      <div class = "outer">
      <input id="number-label" type="number" min="5" max="150" name="age" description="Inputs age of the user"/>
      </div>
      
      <!--dropdown menu -->
      
      <br><br>Which option best describes your current role? <select id="dropdown">
          <option value = "1">Student</option>
          <option value = "2">Full time job</option>
          <option value = "3">Part time job</option>
          <option value = "4">Prefer not to say</option>
      <option value = "5">Other</option></select>
      
      <!-- radio buttons -->
 
      <div id = "radio-label">
        <label for = "options"><br>Would you recommend us to a friend?</label>
      </div>
      <div id = "radio-list">
        <ul>
          <li class = "radio">
            <label>
              <input name = "radio-buttons" value = "1" type = "radio" class = "options"/>Yes
            </label>
          </li>
          
          <li class = "radio">
            <label>
              <input name = "radio-buttons" value = "2" type = "radio" class = "options"/>Maybe
            </label>
          </li>
          
          <li class = "radio">
            <label>
              <input name = "radio-buttons" value = "3" type = "radio" class = "options"/>No
            </label>
          </li>
        </ul>
      </div>
      
      
      <!-- checkboxes -->  
    
        <p id = "imp">Improvements to be made:</p>
  
  <div id = "list">
    <ul>
      <li>
        <input type = "checkbox" class = "checklist" value = "check-option"/>
        <label for = "check-option">Front-end development</label></li>
      
    <li>
      <input type = "checkbox" class = "checklist" value = "check-option"/>
        <label for = "check-option">Back-end development</label></li>      
      
    <li>
      <input type = "checkbox" class = "checklist" value = "check-option"/>
      <label for = "check-option">Challenges</label></li>
      
    <li>
      <input type = "checkbox" class = "checklist" value = "check-option"/>
      <label for = "check-option">Forum</label></li>
      
  <li>
     <input type = "checkbox" class = "checklist" value = "check-option"/>
    <label for = "check-option">Open source community</label></li>
      </ul>
    </div> 
    
     <!-- additional info -->
      
      <p id = "more">Anything further to add?</p>
    <textarea placeholder = "Please tell us..." id = "ta" rows = "4" cols = "50"></textarea>
    
      <input type = "submit" id = "submit" value = "Submit" name = "submit">
  </form>
  </div>
</body>
  
              
            
!

CSS

              
                .super-container {
  background-image: url(http://cdn.wonderfulengineering.com/wp-content/uploads/2014/07/universe-backgrounds-21.jpg);
  height: 100%;
}

* {
  font-family: Andale Mono, monospace;
  color: white;
  border-radius: 25px;
}

#title {
  text-align: center;
  font-size: 30px;
}

#description {
  text-align: center;
  font-size: 18px;
}

.container {
  width: 50%;
  clear: both;
  margin: auto;
  font-color: black;
  padding-top: 25px;
  padding-bottom: 10px;
}

.outer {
  width: 100%;
}

.outer label {
  width: 50%;
}

.outer input {
  width: 50%;
}

#firstname {
  width: 50%;
  border: 1px solid black;
  color: black;
  border-radius: 0;
  box-shadow: 1px 1px 1px 1px black;
}

#lastname {
  width: 50%;
  border: 1px solid black;
  margin-top: 10px;
  color: black;
  box-shadow: 1px 1px 1px 1px black;
  border-radius: 0;
}

#email {
  width: 50%;
  border: 1px solid black;
  margin-top: 10px;
  color: black;
  box-shadow: 1px 1px 1px 1px black;
  border-radius: 0;
}

#number-label {
  width: 15%;
  border: 1px solid black;
  margin-top: 10px;
  color: black;
  box-shadow: 1px 1px 1px 1px black;
  border-radius: 0;
}

select option {
  color: black;
}

#dropdown {
  border: 1px solid black;
  margin-top: 10px;
  color: black;
  box-shadow: 1px 1px 1px 1px black;
  border-radius: 0;
}

#radio-label {
  margin-top: 1px;
}

li {
  list-style-type: none;
}

#imp {
  text-align: left center;
}

#list {
  display: flex;
  justify-content: left center;
  margin-top: -18px;
}

#more {
  text-align: center;
}

#ta {
  color: black;
  margin: auto;
  display: block;
  border: 1px solid black;
  border-radius: 0;
  color: black;
  box-shadow: 1px 1px 1px 1px black;
}

#submit {
  width: 15%;
  color: black;
  border: 1px solid black;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  display: block;
  box-shadow: 1px 1px 1px 1px black;
}
              
            
!

JS

              
                
              
            
!
999px

Console