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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <h1 id="title"> Survey Form </h1>
<div id="form-area">
  <p id="description"> Let us know how we can improve FreeCodeCamp 
  </p>
  <form id="survey-form">
    <div class="row">
      <div class="labels">
        <label id="name-label" for="name"> * Name: </label>
      </div>
      <div class="right-tab">
        <input autofocus type="text" id="name" name="name" class="input-field" placeholder="Enter your name" required>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label id="email-label" for="email"> * Email: </label>
      </div>
      <div class="right-tab">
        <input autofocus type="email" id="email" name="email" class="input-field" placeholder="Enter your Email" required>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label id="number-label" for="age"> * Age: </label>
      </div>
      <div class="right-tab">
        <input autofocus type="number" id="number" name="age" min="1" max="125" class="input-field" placeholder="Enter your age" required>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="current-pos"> Which option best describes your current role? 
        </label>
      </div>
      <div class="right-tab">
        <select id="dropdown" name="current-pos" class="dropdown">
          <option disabled value> Select an option </option>
          <option value="student"> Student </option>
          <option value="job"> Full Time Job </option>
          <option value="learner"> Full Time Learner </option>
          <option value="silence"> Prefer Not To Say </option>
          <option value="other"> Other </option>
        </select>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="user-rating"> * How likely is that you would recommend freeCodeCamp to a friend? 
        </label>
      </div>
      <div class="right-tab">
        <ul id="user-rating">
          <li class="radio">
            <label> Definitely <input name="radio-buttons" value="1" type="radio" class="user-ratings"></label>
          </li>
          <li class="radio">
            <label> Maybe <input name="radio-buttons" value="2" type="radio" class="user-ratings"></label>
          </li>
          <li class="radio">
            <label> Not sure <input name="radio-buttons" value="3" type="radio" class="user-ratings"></label>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="most-like"> What do you like most in FCC? </label>
      </div>
      <div class="right-tab">
        <select id="most-like" name="most-like" class="dropdown">
          <option disabled value> Select an option </option>
          <option value="chalanges"> Chalanges
          </option>
          <option value="projects"> Projects </option>
          <option value="community"> Community </option>
          <option value="open-source"> Open Source </option>
        </select>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="preferences"> Things that should be improved in the future (Check all that apply): </label>
      </div>
      <div class="right-tab">
        <ul id="preferences">
          <li class="checkbox">
            <label><input name="prefer" value="1" type="checkbox" class="user-ratings"> Frontend Projects</label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="2" type="checkbox" class="user-ratings"> Back-end Projects </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="3" type="checkbox" class="user-ratings"> Data Visualization </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="4" type="checkbox" class="user-ratings"> Challenges </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="5" type="checkbox" class="user-ratings"> Open Source Community </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="6" type="checkbox" class="user-ratings"> Gitter help rooms </label>
          </li>
          <li class="checkbox">
            <label><input name="perfer" value="7" type="checkbox" class="user-ratings"> Videos </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="8" type="checkbox" class="user-ratings"> City Meetups </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="9" type="checkbox" class="user-ratings"> Wiki </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="10" type="checkbox" class="user-ratings"> Forum </label>
          </li>
          <li class="checkbox">
            <label><input name="prefer" value="11" type="checkbox" class="user-ratings"> Additional Courses </label>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="row">
      <div class="labels">
        <label for="comments"> Any Comments or Suggestions? </label>
      </div>
      <div class="right-tab">
        <textarea id="comments" class="input-field" name="comment" placeholder="Enter your comment here..."></textarea>
      </div>
    </div>
    
    <button id="submit">
      Submit
    </button>

  </form>
</div>
            
          
!

CSS

            
              @import url(https://fonts.googleapis.com/css?family=Raleway:400,500);

html, body {
  background: #a9d7d1;
  text-align: center;
  font-family: 'Raleway', Helvetica, sans-sarif;
  min-width: 320px;
}

#form-area {
  background-color: #fafafa;
  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;
}

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

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

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

ul {
  list-style: none;
}

.user-ratings, input[type="checkbox"] {
  float: left;
  margin-right: 5px;
}

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

#comments {
  height: 50px;
  resize: vertical;
}

#submit {
  font-size: 17px;
  background-color: #59ace0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin: 10px;
}

/* media queries */

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

@media screen and (max-width: 522px) {
  .labels {
    width: 100%;
    text-align: left;
  }
  
  .right-tab {
    width: 100%;
  }
}
            
          
!

JS

            
              
            
          
!
999px

Console