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

              
                <div >
  <h1 id="title">Survey Form</h1>
</div>
<div id="main">
  <div >
    <p id="description">Let us know how we can improve freeCodeCamp</p>
  </div>
  
  <form id="survey-form" method="GET" action="https://crossorigin.me/https://freecodecamp.com">
    <div class="row">
      <div class="labels">
        <label id="name-label" for="name" class="font">Name</label>
      </div>
       <div class="rightTab">
        <input type="text" id="name" class="input-field" placeholder="Enter your name" required/>
       </div>
      
    </div>
      <div class="row">
      <div class="labels">
        <label id="email-label" for="email" class="font">Email</label>
      </div>
       <div class="rightTab">
        <input type="email" id="email" class="input-field" placeholder="Enter your email" required/>
       </div>
      
    </div>
    <div class="row">
      <div class="labels">
        <label id="number-label" for="number" class="font">Age</label>
      </div>
       <div class="rightTab">
        <input type="number" name="age" id="number" min="1" max="125" class="input-field" placeholder="Age" required/>
       </div>
      
    </div>
    <div class="row">
      <div class="labels">
        <label class="font">Which option best describes your current role?</label>
      </div>
       <div class="rightTab">
         <select id="dropdown" name="currentPos" class="dropdown">
           <option>Select an option</option>
           <option value="student">Student</option>
           <option value="">Full time job</option>
           <option value="job">Full time leaner</option>
           <option value="learner">Prefer not to say</option>
           <option value="other">Other</option>
         </select>
       </div>
      
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="userratings" class="font">How likely is that you would recommend freeCodeCamp to a friend?</label>
      </div>
       <div class="rightTab">
         <ul style="list-style: none;">
          <li class="radio"><label class="font">Definitely<input name="radio-buttons" value="1"  type="radio" class="userratings" ></label></li>
          <li class="radio"><label class="font">Maybe<input name="radio-buttons" value="2"  type="radio" class="userratings" ></label></li>
          <li class="radio"><label class="font">Not sure<input name="radio-buttons" value="3"  type="radio" class="userratings" ></label></li>
        </ul>
       </div>
      
    </div>
    <div class="row">
      <div class="labels">
        <label class="font">What do you like most in FCC:</label>
      </div>
       <div class="rightTab">
         <select id="dropdown" name="mostlike" class="dropdown">
           <option>Select an option</option>
           <option value="challenges">Challenges</option>
           <option value="">Full time job</option>
           <option value="projects">Projects</option>
           <option value="community">Community</option>
           <option value="openSource">Open Source</option>
         </select>
       </div>
      
    </div>
    <div class="row">
      <div class="labels">
        <label for="preference" class="font">Things that should be improved in the future<br>(Check all that apply):</label>
      </div>
       <div class="rightTab">
         <ul id="preferences" style="list-style: none;">
          <li class="checkbox"><label class="font"><input name="prefer" value="1" type="checkbox" class="userRatings">Front-end Projects</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="2" type="checkbox" class="userRatings">Back-end Projects</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="3" type="checkbox" class="userRatings">Data Visualization</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="4" type="checkbox" class="userRatings">Challenges</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="5" type="checkbox" class="userRatings">Open Source Community</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="6" type="checkbox" class="userRatings">Gitter help rooms</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="7" type="checkbox" class="userRatings">Videos</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="8" type="checkbox" class="userRatings">City Meetups</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="9" type="checkbox" class="userRatings">Wiki</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="10" type="checkbox" class="userRatings">Forum</label></li>
          <li class="checkbox"><label class="font"><input name="prefer" value="10" type="checkbox" class="userRatings">Additional Courses</label></li>
        </ul>
       </div>
      
    </div>
    <div class="row">
      <div class="labels">
        <label class="font" for="comments">Any Comments or Suggestions?</label>
      </div>
      <div class="rightTab">
        <textarea id="comments" class="input-field" style="height:50px;resize:vertical;" name="comment" placeholder="Enter your comment here..."></textarea>
      </div>
    </div>
    <button id="submit" type="submit">Submit</button>
  </form>
</div>

              
            
!

CSS

              
                body {
  background: #ccc;
}
#title {
  text-align: center;
}
#main {
  width: 75%;
  max-width: 900px;
  
  margin: 0 auto;
  background: #fff;
  border-radius: 5px;
  padding: 10px;
}
p {
  text-align: center;
  padding: 20px;
  font-size: 20px;
  font-family: book antiqua;
}
.font {
  font-family: book antiqua;
  font-size: 18px;
  
}
.labels {
  
  display: inline-block;
  text-align: right;
  width: 40%;
  padding: 20px;
  vertical-align: top;
  margin-top: 10px;
}

.rightTab {
  display: inline-block;
  width: 50%;
  text-align: left;
  vertical-align: middle;
  padding: 20px;
}
.input-field {
  width: 300px;
  height: 20px;
  padding: 10px;
  border-radius: 5px;
}
.dropdown {
  width: 300px;
  height: 50px;
  padding: 10px;
  border-radius: 5px;
}
.userratings,
input[type="checkbox"] {
  float: left;
  margin-right: 5px;
}
.radio, .checkbox {
  position: relative;
  left: -43px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
}
#submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  margin-left: 350px;
  border: 0px solid;
}

@media screen and (max-width: 833px) {
  .input-field {
    width: 80%;
  }
  .dropdown {
    width: 80%;
  }
  #submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  margin-left: auto;
  border: 0px solid;
}
}

@media screen and (max-width: 520px) {
  .labels {
    width: 100%;
    text-align: left;
  }
  .rightTab {
    width: 80%;
    float: left;
  }
  .input-field {
    width: 100%;
  }
  .dropdown {
    width: 80%;
  }
  #submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  margin-left: auto;
  border: 0px solid;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console