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

              
                <!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<h1 id="title">Survey Form</h1>
<div id="container">
  <p id="description">Let us know how we can improve freeCodeCamp</p>
  <form id="survey-form">
    
    <div class="row">
    <div class="left">
      <label for="name" id="name-label">* Name:</label></div>
    <div class="right">
      <input type="text" name="name" id="name"  placeholder="Enter your name" required=""></div>
    </div>

    <div class="row">
    <div class="left">
      <label for="email" id="email-label">* Email:</label></div>
    <div class="right"><input type="email" id="email" name="name" placeholder="Please enter an email" required="" >
    </div></div>
    
    <div class="row">
    <div class="left">
      <label for="age" id="number-label">* Age:</label></div>
    <div class="right"><input type="number" id="number" name="age" min="16" max="120" placeholder="Enter your age">
      </div></div>
    
    <div class="row">
    <div class="left">
      <label for="role" id="role">Which option best describes your current role?</label></div>
    <div class="right">
      <select name="role" id="dropdown">
      <option disabled selected value>Select an option</option>
      <option value="student">Student</option>
      <option value="fullJob">Full Time Job</option>
      <option value="fullLearner">Full Time Learner</option>
      <option value="noReply">Prefer not to say</option>
      <option value="other">Other</option>
    </select>
      </div></div>
    
    <div class="row">
    <div class="left">
      <label id="recommend" for="recommend">* How likely is that you would recommend freeCodeCamp to a friend?
      </label>
      </div>
    
      <div class="right">
        <label class="radio"><input type="radio" name="recommend" value="1">Definitely</label>
        <label class="radio"><input type="radio" name="recommend" value="2">Maybe</label>
        <label class="radio"><input type="radio" name="recommend" value="3">Not sure</label>
      </div>
    </div>
    
    <div class="row">
    <div class="left">
      <label for="like" id="like">What do you like most in FCC:</label>
      </div>
    <div class="right">
    <select name="like">
      <option disabled selected value>Select an option</option>
      <option value="challenges">Challenges</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="left">
    <label for="improve" id="improve">
      Things that should be improved in the future(Check all that apply)
      </label>
    </div>
    <div class="right">
    <label class="checkbox"><input type="checkbox" name="improve" value="1">Front-end Projects</label>
        <label class="checkbox"><input type="checkbox" name="improve" value="2">Back-end Projects</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="3">Data Visualization</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="4">Challenges</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="5">Open Source Community</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="6">Gitter help rooms</label>
    
      <label class="checkbox"><input type="checkbox" name="improve" value="7">Videos</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="8">City Meetups</label>
    
    <label class="checkbox"><input type="checkbox" name="improve" value="9">Wiki</label>
    
    <label class="checkbox"><input type="checkbox" name="Forum" value="10">Forum</label>
    
    <label class="checkbox"><input type="checkbox" name="Additional Courses" value="11">Additional Courses</label>
      </div>
    </div>

    <div class="row">
      <div class="left">
    <label for="textArea" id="comments">
      Any Comments or Suggestions?
      </label>
      </div>
      <div class="right">
    <textarea name="textArea" placeholder="Enter your comment here...">
    </textarea>
      </div>
    </div>
           
    
     <!--<input type="button" id="submit" name="submitBtn" value="Submit">-->
    
    <div class="row">
    <button id="submit" type="submit" value="Submit">Submit</button>
    </div>
    
      <div class="row"></div>
  </form>
</div>
              
            
!

CSS

              
                body {
  background-color: hsl(199, 45%, 65%);
  font-family: 'Oswald';
  font-weight: light;
}

#container {
  text-align: center;
  padding: 0.1% 0 1% 2%;
  max-width: 75%;
  margin: auto;
  background-color: hsl(11, 1%, 85%);
}

h1  {
  text-align: center;
  font-size: 2em;
  font-weight: lighter;
}

p {
  font-weight: lighter;
  font-size: 1.2em;
}

/*
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}*/

/* Previous properties not currently used */
.left4 {
  display: inline-block;
  float: left;
  clear: left;
  width: 50%;
  text-align: right;
}

.left {
  display: inline-block;
  width: 50%;
  float: left;
  margin-left: 10%;
  
  
}

.right {
  float: left;
  margin-left: -14%;
}

/* Previous properties not currently used */
.right4 {
  display: inline-block;
  float: left;

}

.row {
  display: block;
  clear: left;
}

input {
  
}

/* Label adjustments */
#name-label, #email-label {
  margin-right: -35%;
}

#number-label {
  margin-right: -36.5%;
}

#role {
  margin-right: -3%;
}

#recommend {
  margin-left: -17%;
}

#like {
  margin-right: -18%;
}

#comments {
  margin-right: -16%;
}

#improve {
  margin-right: 14%;
}


.radio, .checkbox {
  display: block;
  text-align: left;
}

input, select { 
  padding: 2% 1% 2% 6%;
}

button {
  background-color: hsl(199, 45%, 65%);
  border: 0;
  border-radius: 2px;
  margin-top: 1%;
  padding: 0.5% 1%;
}




              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

// BE SURE TO SELECT THE CORRECT TEST SUITE FROM THE DROPDOWN MENU!!! :-) 

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console