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.

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>

<link href="https://fonts.googleapis.com/css?family=Cabin" rel="stylesheet">
<form id="survey-form" .>
  <h1 class="text-center" id="title"> Free Code Camp Feedback and Usage form.</h1>
  <div id="form-outer">

    <div class='textField1'>
      <p id="description">Help us understand what types of peole use Free Code Camp the most and why.</p>
      <label id="name-label" for='name'>*Name:
    <input id='name' placeholder="Enter Your Name" required>
    	
  </label>
    </div>

    <div class="textField2">
      <label id="email-label" for 'email'>*Email:
    <input type="email" name="email" id='email'  placeholder="Enter Your Email" required>
 
  </label>
    </div>

    <div class="textField2">
      <label id="number-label" for='age'>*Age:
      <input id="number" type="number" name="age" min="1" max="125" 
            placeholder="Enter your age" required>
     </label>
    </div>

    <div class="textField2">
      <label for='Income'>Income:
        <input id="Income" placeholder="Income in US dollars" >
      </label>
    </div>

    <p id="tiny-words">*Only used to determine if high or low class people benefit more from coding.</p>
    <!--</div>-->
    <div class="textField2">
      <label for='Time'>*Time:
 <input id="Time " placeholder="When you started coding" required>
      </label><br><br>
    </div>
    <div class "textField2">
      <div class="row">
        <div class="labels">
      <label for="education"> Current Education:</label>

          <input id="High School Diploma" type="checkbox" name="Education" value="1">High School Diploma </input>
          <input id="College Degree" type="checkbox" name "Education" value="2">College Degree</input>
        </div>
      </div>
    </div>
    <div class="textField2">
      <div class="row">
        <div class="labels">
          <label for="recommend" required> Would you recommend FreeCodeCamp to someone else?</label>
        </div>

        <div class="inputs">
          <div class="radios">
            <div class="block">
              <label for="definitely"><input type="radio" name="recommend" value="definitely">Definitely</label>
            </div>
            <div class="block">
              <label for="maybe"><input type="radio" name="recommend" value="Maybe">Maybe</label>
            </div>
            <div class="block">
              <label for="no"><input type="radio" name="recommend" value="No">No</label>
            </div>
          </div>
        </div>
      </div>
      <div class="textField2">
        <label for=' Gender'>*Gender:
   
    	<div class="inputs options ">
					
						<select id="dropdown">
							<option disabled value selected="selected">Select an Option</option>
							<option value="student">Male</option>
							<option value="learner">Female</option>
							<option value="professional">Transgender</option>
							
   
                      </select>
    </label>
      </div>
    </div>
    <div class="textField2">

      <label for='comments'>Other Comments or suggestions:   <textarea placeholder='Enter here...' cols="30" rows="5"></textarea>      
      </div>
   </label>

      <button id="submit" type="submit">Submit</button>
</form>
</div>
</div>
<p>Coded by Adam Preiser 7/18 </p>
              
            
!

CSS

              
                #title {
  font-family: Courier New;
  text-align: center;
}

body {
  background-color: green;
}

#description {
  text-align: center;
}

#form-outer {
  background-color: white;
  margin: auto;
  border-radius: 4px;
  width: auto;
  max-width: 1100px;
  max-lenght: 10px;
  padding-top: 15px;
}

.labels {
  text-align: right;
  width: 70%;
}

.textField1 {
  margin-top: 1%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: cabin;
}

.textField2 {
  margin-top: 4%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family:cabin;
}

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

p {
  text-align: center;
  
  font-size: 15px;
}

h2 {
  font-size: 15px;
}

#submit {
  background-color: green;
  border-radius: 4px;
  color: white;
  height: 40px;
  width: 80px;
  margin: 30px;
  border: 0px solid;
}

#tiny-words {
  font-size: 10px;
}


              
            
!

JS

              
                
              
            
!
999px

Console