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

              
                <main id="main" class="container">
   <div class="row">
      <div class="col-xs-12 col-lg-offset-3 col-lg-6">
         <div class="m-b-md text-center">
            <h1 id="title">Survey Form</h1>
            <p id="description" class="description" class="text-center">Let us know how we can improve freeCodeCamp</p>
         </div>
         <form method="GET" action="" id="survey-form" name="survey-form">
            <fieldset>
               <label for="name" id="name-label">
               Name *
               <input class="" type="text" id="name" name="name" placeholder="Enter your name (required)" required />
               </label>
            </fieldset>
            <fieldset>
               <label for="email" id="email-label">
               Email *
               <input class="" type="email" id="email" name="email" placeholder="Enter your email (required)" required />
               </label>
            </fieldset>
            <fieldset>
               <label for="number" id="number-label">
               Age *
               <input class="" type="number" id="number" name="number" min="8" max="112" placeholder="Enter you age (required)" required />
               </label>
            </fieldset>
            <fieldset>
               <label for="dropdown">
                  Which option best describes your current role? *
                  <select id="dropdown" name="dropdown" class="m-t-xs">
                     <option value="student" selected>Student</option>
                     <option value="ftLob">Full Time Job</option>
                     <option value="ftLearner">Full Time Learner</option>
                     <option value="notSaying">Prefer not to say</option>
                     <option value="other">Other</option>
                  </select>
               </label>
            </fieldset>
            <fieldset>
               <div class="labels">
                  How likely is that you would recommend freeCodeCamp to a friend? *
               </div>
               <label class="m-b-xs">
               <input type="radio" name="survey-form-gender" value="definitely" checked /> Definitely
               </label>
               <label class="m-b-xs">
               <input type="radio" name="survey-form-gender" value="maybe" /> Maybe
               </label>
               <label class="m-b-xs">
               <input type="radio" name="survey-form-gender" value="notSure" /> Not sure
               </label>
            </fieldset>
            <fieldset>
               <label for="survey-form-like">
                  What do you like most in FCC:
                  <select id="survey-form-like" name="survey-form-like" class="m-t-xs">
                     <option value="challenges" selected>Challenges</option>
                     <option value="projects">Projects</option>
                     <option value="community">Community</option>
                     <option value="openSource">Open Source</option>
                  </select>
               </label>
            </fieldset>
            <fieldset>
               <div class="labels">
                  Things that should be improved in the future (Check all that apply):
               </div>
               <label for="survey-form-improve1" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve1" value="feProjects">
               Front-end Projects
               </label>
               <label for="survey-form-improve2" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve2" value="beProjects">
               Back-end Projects
               </label>
               <label for="survey-form-improve3" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve3" value="dataVisualization">
               Data Visualization
               </label>
               <label for="survey-form-improve4" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve4" value="challenges">
               Challenges
               </label>
               <label for="survey-form-improve5" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve5" value="openSources">
               Open Source Community
               </label>
               <label for="survey-form-improve6" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve6" value="gitter">
               Gitter help rooms
               </label>
               <label for="survey-form-improve7" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve7" value="videos">
               Videos
               </label>
               <label for="survey-form-improve8" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve8" value="meetup">
               City Meetups
               </label>
               <label for="survey-form-improve9" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve9" value="wiki">
               Wiki
               </label>
               <label for="survey-form-improve10" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve10" value="forum">
               Forum
               </label>
               <label for="survey-form-improve11" class="m-b-xs">
               <input type="checkbox" id="survey-form-improve11" value="additional">
               Additional Courses
               </label>
            </fieldset>
            <fieldset>
               <label for="survey-form-suggestions">
               Any Comments or Suggestions?
               <textarea id="survey-form-suggestions" maxlength="194"></textarea>
               </label>
            </fieldset>
            <button id="submit" type="submit" class="btn">Submit the form</button>
         </form>
         <div class="copyright m-t-sm">
            <div>By <a href="http://www.adeleroyer.fr" title="Adèle Royer">Adèle Royer</a> with <i class="glyphicon glyphicon-heart"></i></div>
         </div>
      </div>
   </div>
</main>
              
            
!

CSS

              
                // Var
$font:          'Roboto', sans-serif;
$bg:            #37404a;
$white:         #FFF;
$grey:          #333;
$rose:          #E87E91;
$blue-light:    #73bec8;
$blue-lighter:  #ABDAD3;
$green:         #85FFC7;
$red:           #EF5350;

// Margin & Padding
.m-b-xs {
  margin-bottom: 2%;
}
.m-b-md {
  margin-bottom: 10%;
}
.m-t-xs {
  margin-top: 2%;
}
.m-t-sm {
  margin-top: 5%;
}

// General
* {
  outline: 0 !important;
}

body {
  padding: 2% 0;
  background-color: $bg;
}

h1 {
  font-family: $font;
  font-size: 2.2em;
  font-weight: 300;
  color: $green;
  text-transform: uppercase;
}

p {
  font-family: $font;
  font-size: 1.1em;
  font-weight: 300;
  color: $white;
}

a {
  color: $white;

  &:hover {
    text-decoration: none;
    color: $white;
  }
}

#survey-form {
		label,
	.labels {
			display: block;
			margin-bottom: 2%;
			font-family: $font;
			font-size: 1.1em;
			font-weight: 300;
			color: $white;
			letter-spacing: 0.5px;
	}

	input::-webkit-input-placeholder {
			color: transparent !important;
	}
	input::-moz-placeholder {
			color: transparent !important;
	}
	input:-ms-input-placeholder {
			color: transparent !important;
	}
	input:-moz-placeholder {
			color: transparent !important;
	}

	input,
	select {
			display: block;
			width: 100%;
			overflow: hidden;
			outline: none;
			border: 2px solid $grey;
	}

	input {
			margin-top: 1.5%;
			padding: 0 0 5px 0;
			background: transparent;
			border: none;
			outline: none;
			border-bottom: 2px solid $white;
			font-size: 1.1em;
			font-weight: 300;
			color: $green;

			&:focus {
					border-color: $green;
			}
	}

	[type="checkbox"],
	[type="radio"] {
			display: inline-block;
			width: auto;
			margin: 0px 10px 0 0;
	}

	[type="checkbox"],
	[type="radio"]{
			display: inline-block;
			margin: 0 10px 0 0 !important;
			position: relative;
			top: 5px;
			right: 0;
			bottom: 0;
			left: 0;
			-webkit-appearance: none;
			-moz-appearance: none;
			-ms-appearance: none;
			-o-appearance: none;
			appearance: none;
			height: 23px;
			width: 23px;
			transition: all 0.15s ease-out 0s;
			background: $bg;
			color: $white;
			cursor: pointer;
			outline: none;
			z-index: 1000;
			border: 1px solid #FFF;

			&:hover {
					border-color: $green;
			}
			&:checked {
					&:before {
							display: inline-block;
							height: 21px;
							width: 21px;
							position: relative;
							left: 0;
							bottom: 0;
							content: "\e014";
							text-align: center;
							font-family: 'Glyphicons Halflings';
							line-height: 20px;
							font-size: 15px;
							color: $green;
					}
			}
			&:focus {
					outline: none;
					border-color: $white;
			}
	}

	[type="radio"] {
			border-radius: 50%;

			&:after {
					border-radius: 50%;
			}
	}

	[type=number] {
			width: 45px;

			&::-webkit-inner-spin-button,
			&::-webkit-outer-spin-button {
					-webkit-appearance: none;
					-moz-appearance: none;
					appearance: none;
					margin: 0;
			}
	}

	select {
			height: 40px;
			padding-left: 5px;
			background-color: $bg;
			border: 2px solid $white;
			color: $green;

			& option {
					padding: 5px 10px;
					font-weight: 300;
					cursor: pointer;

					&:hover {
							background-color: $green;
					}
			}
	}

	textarea {
			resize: none;
			margin-top: 2%;
			padding: 10px 10px 0px 20px;
			width: 100%;
			height: 90px;
			color: $green;
			background-color: $bg;
			border: 2px solid $white;
	}

	.btn {
			display: inline-block;
			position: relative;
			width: 100%;
			margin: 3% 0 0 0;
			height: 45px;
			text-transform: uppercase;
			text-decoration: none;
			cursor: pointer;
			border: 3px solid #85FFC7;
			border-radius: 0;
			font-weight: 500;
			font-size: 1.2em;
			color: $green;
			text-align: center;
			background: none;
			transition: color 0.25s ease;

			&:after {
					position: absolute;
					content: '';
					top:0;
					left: 0;
					width: 0;
					height: 100%;
					background-color: $green;
					transform-origin:left;
					transition: width 0.5s ease;
					z-index:-1;
			}
			&:hover {
					color: $bg;

					&:after {
							width: 100%;
					}
			}
	}

	fieldset {
			margin: 5% 0 0 0;
	}
}


.copyright {
  text-align: center;
  font-size: 10px;
  color: $white;

  & i {
    color: $red;
  }
}

// Responsive
@media only screen and (max-width: 600px) {
  body {
    padding: 8% 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console