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

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

<h1 id="title">Survey Form</h1>
<div id="form-outer">


<p id="description">Let us know we could improve our products</p>

  <form id="survey-form">
 
   <div class="nextRow">
     <div class="label">
       <label id="name-label" for="name">* Name: </label>
     </div>
     <div class="rightSide">
  <input autofocus type="text" id="name"  class="input-field" placeholder="Enter your full name" required> 
     </div>
   </div>
 
   <div class="nextRow">
     <div class="label">
       <label id=email-label for="email">* Email:   </label>
     </div>
      <div class="rightSide">   
        <input type="email" id="email"  class="input-field" 
 placeholder="Enter your email" required>
      </div> 
    </div>

<div class="nextRow">
      <div class="label">
        <label id=number-label for="number">* Age:</label>
      </div>  
<div class="rightSide">
 <input type="number" id="number"  
 min="00" max="100"  class="input-field"  placeholder="Age" required>
      </div>
</div>
   <div class="nextRow"> 
     <div class="label">
       <label for="tech">How familiar how you with this technology?</label>
     </div>
     <div class="rightSide">
       <select id="dropdown" name="tech" class="dropdown">
        <option disabled value>Select an option</option>
        <option value="beginner">Beginner</option>
         <option value="intermediate">Intermediate</option>
         <option value="advanced">Advanced</option>
       </select>
     </div>
     
     <div class="nextRow">
       <div class="label">
         <label for="userInput">How likely are you to reccommend our product<br> to a friend?</label>
       </div>
       <div class="rightSide">
         <ul style="list-style: none">
               <li class="radio"><label>Absolutley<input name="radio-buttons" value="1"  type="radio" class="userInput" ></label></li>
          <li class="radio"><label>Maybe<input name="radio-buttons" value="2"  type="radio" class="userInput" ></label></li>
          <li class="radio"><label>Not sure<input name="radio-buttons" value="3"  type="radio" class="userInput" ></label></li>
        </ul>
      </div>
    </div>
    <div class="nextRow">
      <div class="label">
        <label for="improve">How could we improve out products?
      </div>
      <div class="rightSide">
        <ul id="improve" style="list-style: none;">
          <li class="checkbox">
            <label><input name="engaging" value="1" type="checkbox" class="userInput">Engaging more with the customers</label></li>
          
          <li class="checkbox"><label><input name="engaging" value="2" type="checkbox" class="userInput">Updating the product
          </label></li>
        
          <li class="checkbox"><label><input name="engaging" value="3" type="checkbox" class="userInput">Improving the manual 
          </label></li>
        
          <li class="checkbox"><label><input name="engaging" value="4" type="checkbox" class="userInput">Adding instructional videos</label></li>
        </ul>
      </div>
    <div class="nextRow">
      <div class="label">
        <label for="suggestions"><p>Any Comments or Suggestions?</label></p>
      </div>
      <div class="rightSide">
        <textarea id="suggestions" class="input-field" style="height:50px;resize:vertical;" name="suggestion" placeholder="Enter your comment here.."></textarea>
      </div>
    </div>
    <button  id="submit" type="submit">Submit</button>
  
  </form>
</div>
 






              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Muli');

html, 
body {
  background-color: #82E0AA;
  text-align: center;
  font-family: 'Muli', sans-serif;
  min-width: 320px;
}

header {
  font-size: 2em;
  margin: 20px;
}

#form-outer {
  background-color: rgb(250, 250, 250);
  margin: 0 auto;
  border-radius: 4px;
  width: 75%;
  max-width: 900px;
  padding: 10px;
  padding-top: 20px;
}

.label {
   display: inline-block;
  text-align: right;
  padding: 5px;
  vertical-align: top;
  margin-top: 10px;
  width: 240px;
}
.rightSide {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  width: 48%;
}

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


#userAge {
  width: 40px;
}

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

#submit {
  background-color: #145A32;  
  border-radius: 4px;
  color: white;
  height: 40px;
  width: 96px;
  margin: 0px;
  border: 0px solid;
  font-size: 1em;
}

.dropdown {
  height: 35px;
  width: 140px;
  padding: 5px;
  margin: 10px;  
  margin-top: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}
  
  .radio, .checkbox {
  position: relative;
  left: -43px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
}

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

@media screen and (max-width: 520px) {
  .labels {
    width: 100%;
    text-align: left;
  }
  .rightSide {
    width: 80%;
    float: left;
  }
  
  .input-field {
    width: 100%;
  }
  select {
    width: 100%;
  }
}
  
  
              
            
!

JS

              
                
              
            
!
999px

Console