css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>

<head>
  <title>FCC Survey Form</title>
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>

<body>
  <h1 id="title">FCC Survey Form</h1>
  <div id="survey-container">
    <p id="description">How would you like to see Free Code Camp improved?</p>
    <div>
      <form id="survey-form" method="GET" action="https://crossorigin.me/https://freecodecamp.com">
        <div class="input-holder">
          <div class="left-side">
            <label for="your-name" id="name-label">Name :</label>
          </div>
          <div class="right-side">
            <input type="text" name="your-name" id="name" placeholder="Your Name" class="text-box" required>
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for="your-email" id="email-label">Email :</label>
          </div>
          <div class="right-side">
            <input type="email" name="your-email" id="email" placeholder="Your Email" class="text-box" required>
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for="age" id="number-label">Age :</label>
          </div>
          <div class="right-side">
            <input type="number" id="number" name="age" min="1" max="125" class="text-box" placeholder="Your Age">
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for="selected">What role do you currently hold? :</label>
          </div>
          <div class="right-side">
            <select id="dropdown">
              <option disabled value selected = "selected">Please Choose One</option>
              <option value="selftaught">Self Learner</option>
              <option value="ftstudent">University Student</option>
              <option value = "ptstudent">Part Time Student</option>
              <option value="ftemployed">Full Time Employed</option>
              <option value="ptemployed">Part Time Employed</option>
              <option value = "NotAnswer">Prefer Not To Answer</option>
            </select>
          </div>
        </div>
        <div class="input-holder2">
          <div class="left-side">
            <label for="satisfaction" class = "cantgetno">Given your experiences so far, would you reccomend Free Code Camp to a friend? :
          </div>
          <div class="right-side">
            <ul style="list-style: none;">
          <li class="radio"><label>There was an option not to?<input name="radio-buttons" value="DUH"  type="radio" class="userRatings" ></label></li>
            <li class="radio"><label>It couldn't hurt<input name="radio-buttons" value="Sure"  type="radio" class="userRatings" ></label></li>
            <li class="radio"><label>Ehhhhh<input name="radio-buttons" value="Onthefence"  type="radio" class="userRatings" ></label></li>
            </ul>
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for = "favthing">What's your favorite part of FCC? :</label>
          </div>
          <div class="right-side">
            <select id="dropdown">
              <option disabled value selected = "selected">Please Choose One</option>
              <option value="project">The Projects</option>
              <option value="support">The Support</option>
              <option value = "resources">The Resources</option>
              <option value="community">The Community</option>
              <option value="opens">Open Source</option>
              <option value = "NotAnswer">Prefer Not To Answer</option>
            </select>
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for = "futures" class = "cantgetno">Check all that you'd like to see FCC do different in the future :</label>
          </div>
          <div class="right-side">
            <ul style="list-style: none;">
            <li class="cbox"><label><input name="radio-buttons" value="funny"  type="checkbox" class="userRatings" >Info on Local Meetups</label></li>
            
              <li class="cbox"><label>More in-depth info on a single item<input name="radio-buttons" value="depth"  type="checkbox" class="userRatings" ></label></li>
              <li class="cbox"><label>More Encouragement to Share the Love<input name="radio-buttons" value="DUH"  type="checkbox" class="userRatings" ></label></li>
            </ul>
          </div>
        </div>
        <div class="input-holder">
          <div class="left-side">
            <label for = "yourcomments">Leave any comments or suggestions here :</label>
          </div>
          <div class="right-side">
            <textarea id = "yourcomments" placeholder = "Put your comments here"></textarea>
          </div>
        </div>
        <button class = "submit" type = "submit" id = "submit">Hit it!</button>
       
      </form>
    </div>
  </div>
</body>

</html>
            
          
!
            
              :root {
  --displaytype: inline-block;
  --sideswidth: 48.5%;
  --middlemargin: 0.5%;
}

body {
  background-color: #009999;
  font-family: 'Roboto', sans-serif;
}

h1 {
  text-align: center;
}

#survey-container {
  margin: 0 auto;
  max-width: 100%;
  border-radius: 5px;
  background-color: white;
  width: 45%;
  padding: 2px;
}

#description {
  text-align: center;
  margin: 2%;
}

.left-side {
  display: var(--displaytype);
  width: var(--sideswidth);
  text-align: right;
  margin-right: var(--middlemargin);
  text-align: right;
}

.right-side {
  display: var(--displaytype);
  width: var(--sideswidth);
  margin-left: var(--middlemargin);
  text-align: left;
}

.text-box {
  width: 40%;
}

.radio, .checkbox {
  position: relative;
  left: -43px;
}

.userRatings {
  float: left;
  margin-left: 5px;
}

.cbox {
  float: left;
  display: inline-block;
}

.input-holder {
  margin-top: 3%;
}

#yourcomments {
  width: 48.5%;
  resize: vertical;
}

#submit {
  display: block;
  margin: 0 auto;
  margin-top: 2%;
  margin-bottom: 2%;
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  border: 0px solid;
  position: relative;
  
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console