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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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

					<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


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

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

					<!-- 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?-->

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

  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

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

	grid-area: header;
	text-align: center;
	color: white;

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

	grid-area: main;
	border-radius: 5px;
	display: flex;

@media (min-width: 900px){
		justify-content: stretch;

@media (min-width: 900px){
		flex: 3 0 0px;
		flex: 1 0 632px;
		max-width: 700px;
		display: flex;
	flex-wrap: wrap;
	justify-content: center;

	width: 100%;
	text-align: center;

.form-label, .form-element {
	width: 96%;
	min-width: 143px;
	text-align: left;
	margin: 8px 8px;
.form-element{ margin: 8px 8px; }

@media (min-width: 600px){
	.form-label, .form-element{
		width: 46%;
		min-width: 143px;
		max-width: 300px;
		margin: 8px 8px;
	.form-label{ text-align: right; }

@media (min-width: 900px){
		width: 50%;
		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; }

	width: auto;
	padding: 8px 0px;

	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; }

	resize: vertical;

	width: 100%;
	min-width: 286px;
	text-align: center;
	margin: 8px auto;

	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";

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................