cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <body class="brand-blue-darker">
	<main id="main">

		<div id="header">
			<h1 id="title">First Steps to MCAT Victory</h1>
		</div>
		<div id="main-left-gutter"></div>
		<div id="form-container" class="brand-brown-pale"">
			<div id="form-left-buffer" class="form-buffer"></div>
			<div id="form-central" >

				<form id="survey-form" action="">
					<p id="description">Tell us a little about yourself and your MCAT Goals</p>

					<label for="name" id="name-label" class="form-label">*Name</label>
					<input id="name" type="textarea" placeholder="Enter your Name" class="form-element" required>

					<label for="email" id="email-label" class="form-label">*Email</label>
					<input id="email" type="email" placeholder="Enter your Email" class="form-element" required>

					<label for="number" id="number-label" class="form-label">*Desired MCAT Score</label>
					<input id="number" type="number" placeholder="510 is admission-worthy, e.g." min="472" max="528" class="form-element" required>

					<label id="dropdown-label" for="dropdown" class="form-label">*Testing History</label>
					<select id="dropdown" class="form-element">
					<option value="first-timer">First-time MCAT-taker</option>
					<option value="restester-new-format">Took the post-2015 MCAT</option>
					<option value="retester-old-format">Only took the pre-2015 MCAT</option>
				</select>

					<label id="radio-label" for="has-test-date" class="form-label">Do you have a test date reserved with Peterson's yet?</label>
					<fieldset id="radio-fieldset" class="form-element">
						<input type="radio" name="has-test-date" id="yes-test-date" value="yes" onclick="toggleDateField()" checked>Yes<input id="test-date" type="date"><br>
						<input type="radio" name="has-test-date" id="no-test-date" value="no" onclick="myFunction()">No<br>

						<!--
					
					done: implement js hiding functionality for the date field
					TODO: IMPLEMENT JS FOR TODAY'S DATE
					-->

					</fieldset>

					<label id="checkbox-label" for "classes-taken" class="form-label"> Which of the following courses have you taken in undergrad? (Note: not all are required)</label>
					<fieldset id="checkbox-fieldset" class="form-element">
						<input type="checkbox" name="classes-taken" value="phys">Physics<br>
						<input type="checkbox" name="classes-taken" value="calc">Calculus<br>
						<input type="checkbox" name="classes-taken" value="gchem">General Chemistry<br>
						<input type="checkbox" name="classes-taken" value="orgo">Organic Chemistry<br>
						<input type="checkbox" name="classes-taken" value="bchem">Biochemistry<br>
						<input type="checkbox" name="classes-taken" value="bio">Biology<br>
						<input type="checkbox" name="classes-taken" value="neuro">Neurobiology<br>
						<input type="checkbox" name="classes-taken" value="physio">Physiology<br>
						<input type="checkbox" name="classes-taken" value="english">English Literature or Writing<br>
						<input type="checkbox" name="classes-taken" value="psych">Psychology<br>
						<input type="checkbox" name="classes-taken" value="soc">Sociology<br>

					</fieldset>
					<!-- NOTE re: above - at some later point, ask for #semesters taken, further details of classes (i.e.: Phys +/-calc, bio +/- molecular emphasis, grades and +/- lab or included with above grade. Integrate with school  to get a profile -->

					<label id="freeform-label" for="freeform" class="form-label">Tell us anything else you would like us to know:</label>
					<textarea id="freeform" placeholder="Every person's needs are unique!" class="form-element" name="comment" form="survey-form" contenteditable="true"></textarea>
					<div id="submit-button-div">
						<button id="submit" type="submit">Submit</button>
					</div>

					<!-- Additional radio-fieldset dependent revelation of prep resources you have used/own/have access to? Maybe a future secondary survey with three steps, graying out and coloring the "used" ones?-->
				</form>

			</div>
			<div id="form-right-buffer" class="form-buffer""></div>
		</div>
		<div id="main-right-gutter"></div>

	</main>
</body>
            
          
!
            
              body{
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#main{
  color: black;
  margin: auto -10px; 
	display: grid;
	grid-template-areas:
		"left-gutter header right-gutter"
		"left-gutter main right-gutter";
		grid-template-columns: minmax(60px, 1fr) minmax(286px, 5fr) minmax(60px, 1fr);
}

#header{
	grid-area: header;
	text-align: center;
	color: white;
}

#main-left-gutter{ grid-area: left-gutter; }
#main-right-gutter{ grid-area: right-gutter; }

#form-container{
	grid-area: main;
	border-radius: 5px;
	display: flex;
}

@media (min-width: 900px){
	#form-container{
		justify-content: stretch;
	}
}

@media (min-width: 900px){
	.form-buffer{
		flex: 3 0 0px;
	}
	#form-central{
		flex: 1 0 632px;
		max-width: 700px;
	}
}
#survey-form{
		display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#description{
	width: 100%;
	text-align: center;
}

/* DEFAULT FORM ONE-COLUMN LAYOUT FOR MOBILE VIEWPORTS*/
.form-label, .form-element {
	width: 96%;
	min-width: 143px;
	text-align: left;
	margin: 8px 8px;
}
.form-element{ margin: 8px 8px; }

/*TWO-COLUMN LAYOUT FOR MEDIUM VIEWPORTS*/
@media (min-width: 600px){
	.form-label, .form-element{
		width: 46%;
		min-width: 143px;
		max-width: 300px;
		margin: 8px 8px;
	}
	.form-label{ text-align: right; }
}

/* TWO-COLUMN LAYOUT, ONLY form-bufferS GROW FOR LARGE VIEWPORTS*/
@media (min-width: 900px){
	.form-label{
		width: 50%;
	}
	.form-element{
		width: 50%;
	}
}

input, #submit, fieldset, textarea, select{
	padding: 10px 16px;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid slateblue;
	border-radius: 4px;
}

input.form-element{ background-color: white; }
input.form-element:focus{ outline: 1.5px solid mediumslateblue; }

input[type="radio"],input[type="checkbox"]{
	width: auto;
	padding: 8px 0px;
}

input[type="date"]{
	width: auto;
	margin: 8px 0px 8px 8px;
}

@media (min-width: 600px){
	input[type="date"]{ margin-left: 0px; }
}

@media (min-width: 780px){
	input[type="date"]{ margin-left: 16px; }
}

textarea{
	resize: vertical;
}

#submit-button-div{
	width: 100%;
	min-width: 286px;
	text-align: center;
	margin: 8px auto;
}

#submit{
	width: auto;
}

/* Brand Colors */
.brand-blue-darker {background: #004ECC;}
.brand-blue { background-color: #3380ff; }
.brand-blue-lighter { background-color: #5294FF; }

.brand-brown-darker { background-color: #505B33; }
.brand-brown { background-color: #99aa66; }
.brand-brown-lighter { background-color: #bc8; }
.brand-brown-pale {background-color: #DEE9CE; }
            
          
!
            
              	function toggleDateField(){
		var testDate = document.getElementById("test-date");
		var radioToggle = document.getElementById("yes-test-date");
		if (radioToggle.checked){
			testDate.style.display = "block";
		} else {
			testDate.style.display = "none";
		}
	}

            
          
!
999px
Loading ..................

Console