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 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://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script>

<h1 id="title">Client Survey</h1>
<p id="description">Grade us by filling out this handy form. Your opinion is appriecated.</p>
<p class="required-FCC required-FCC-text"><em>*Required</em></p>

<form id="survey-form" action="" method="post">

	<div class="row">
		<div class="column1">
		<label id="name-label" for="name">Name<span class="required-FCC">*</span>:</label>
		</div>

		<div class="column2">
		<input type="text" id="name" name="name" placeholder="Name" autofocus required />
		</div>
	</div>
	
	<div class="row">
		<div class="column1">
		<label id="email-label" for="email">E-mail<span class="required-FCC">*</span>:</label>
		</div>

		<div class="column2">
		<input type="email" id="email" name="email" placeholder="E-mail"  required />
		</div>
	</div>
	<div class="row">
		<div class="column1">
		<label id="number-label" for="number">Years<span class="required-FCC">*</span>:</label>
		</div>

		<div class="column2">
		<input type="number" id="number" name="client-years" min="1" max="15" placeholder="How many years have you been a client?" required />
		</div>
	</div>

	<div class="row">
		<div class="column1">
		<label for="dropdown">Choose A Service Category:</label>
		</div>
		
		<div class="column2">
		<select id="dropdown" name="service-category">
				<option value="Administration" active>Administration</option>
				<option value="Presentations">Presentations</option>
				<option value="Webnology">Webnology</option>
				<option value="Office Templates">Office Templates</option>
				<option value="Packaged Services">Packaged Services</option>
		</select>
		</div>
	</div>
	
	<div class="row">
		<div class="column1">
		<label for="grade">Give us a grade.</label>
		</div>
	</div>
	<div class="row grade-row">
		<div class="column3">
			<span class="grade-section"><input type="radio" name="grade" id="grade-A" value="A"><label for="grade-A" class="choice-label"> A - Top Quality</label></span>
			<span class="grade-section"><input type="radio" name="grade" id="grade-B" value="B"><label for="grade-B" class="choice-label"> B - Quality</label></span>
			<span class="grade-section"><input type="radio" name="grade" id="grade-C" value="C"><label for="grade-C" class="choice-label"> C - Satisfactory</label></span>
			<span class="grade-section"><input type="radio" name="grade" id="grade-D" value="D"><label for="grade-D" class="choice-label"> D - Okay</label></span>
			<span class="grade-section"><input type="radio" name="grade" id="grade-F" value="F"><label for="grade-F" class="choice-label"> F - Meh...</label></span>
		</div>
	
		<div class="column4">
			<p style="font-weight: 500; font-size: 1.11em; margin-bottom: 8px;"><em>Do you plan on purchasing our services again?</em></p>
		
			<label for="future" class="choice-label"><b><em><u>Pick One</u>:</em></b></label><br>
		
			<span class="grade-section"><input type="checkbox" name="future" id="continue-yes" value="Yes"><label for="continue-yes" class="choice-label"> Yes</label></span>
			<span class="grade-section"><input type="checkbox" name="future" id="continue-maybe" value="Maybe"><label for="continue-maybe" class="choice-label"> Maybe</label></span>
			<span class="grade-section"><input type="checkbox" name="future" id="continue-no" value="No"><label for="continue-no" class="choice-label"> No</label></span>
		</div>
	</div>

	<div class="row msg-row">
		<div class="column1">
		<label for="comment">Leave a comment.</label>
		</div>
		<div class="column2">
		<textarea name="comment" rows="5">Enter a brief comment here.</textarea>
		</div>
	</div>
	<div class="row">
	<input type="submit" id="submit" value="SUBMIT" title="Submit is disabled." disabled />
	</div>

</form>

<article>This is a Free Code Camp Assignment.  One day I am going to come back and really pretty this form up.  For now I'm using the assignments to practice what I've learned...While the optics may not be much to write home about, the techniques are on point.  Nothing beats a beautifully balanced form layout.  Anything beyond fulfilling the assignment (correctly) and a neat and cohesive form was not my goal.  Thanks for taking a peek.</article>
              
            
!

CSS

              
                #survey-form {
	background-color: #d8d8d8;
	padding: 30px;
}

h1#title {
	font-size: 2.5em;
	font-weight: 900;
	margin-left: 5px;
	-webkit-margin-before: 0.67em;
    -webkit-margin-after: 0em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}
#description {
	margin-top: .5em;
	margin-bottom: .5em;
	margin-left: 25px;
	font-size: 1.5em;
}

.required-FCC-text {
	margin: -8px 0 8px 27px;
}

.required-FCC {
	color: red;
	font-weight: bold;
	font-size: .90em;
}

.column1 {
	width: 25%;
	float: left;
}

.column2 {
	width: 75%;
	float: left;
}

.column3 {
	width: 20%;
	float: left;
}

.column4 {
	width: 50%;
	float: left;
	border-left: 2px solid #333333;
	padding-left: 12px;
}

.row {
	clear: left;
}

.grade-row {
	margin-left: 25%;
}

.grade-section {
	display: block;
}

p {
    display: block;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}

label {
	font-size: 16px;
	font-weight: 800;
	padding: 5px 3px;
	align: right;
	margin-bottom: 5px;
}

.choice-label {
	font-weight: 600;
	text-align: left;
}

input[type=text], input[type=email], input[type=number], textarea, select, option {
	font-size: 14px;
	padding: 5px 3px;
	width: 60%;
	margin-bottom: 12px;
	
}

.msg-row {
	padding-top: 20px;
}

article {
	font-family: Dauphin;
	font-size: 12px;
	background-color: #333333;
	color: #f8f8f8;
	padding: 10px;
}

   input[type="submit"] {
     background: red;
     color: white;
     outline: none;
     border: none;
     padding: 8px;
    }


@media (max-width: 981px) {
	label, .column1, .column2, .column3, column4 {
		width: 100%;
	}
	
	input[type=text], input[type=email], input[type=number], textarea, select, option {
	width: 100%;	
}
	p {
		margin-before: .5em;
		-webkit-margin-before: .5em;
		margin-after: .5em;
		-webkit-margin-after: .5em;
		-webkit-margin-start: 0px;
		-webkit-margin-end: 0px;
	}
	
	.column4 {
		border-left: none;
		padding-left: none;
	}
	.msg-row {
		padding-top: 10px;
	}
	.choice-label {
		font-size: .90em;
		margin-top: -5px;
	}

	.grade-row {
		margin-left: 5%;
	}
	
	.grade-section {
		display: flex;
	}


	
}
              
            
!

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. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// 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