css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <main>
	<form id="referral-form" method="post">

		<p id="description">Referall Form</p>

		<div id="input-form" class="container">

			<div class="label-side">
				<label>Name: </label>
			</div>
			<div class="input-side">
				<input id="name" type="text" name="name" placeholder="Enter your name" required>
			</div>

			<div class="label-side">
				<label>Email: </label>
			</div>
			<div class="input-side">
				<input id="email" type="email" name="email" placeholder="Enter your email" required>
			</div>

			<div class="label-side">
				<label>Phone Number: </label>
			</div>
			<div class="input-side">
				<input id="phone" type="text" name="number" placeholder="(xxx) xxx-xxxx" required>
			</div>

			<div class="label-side">
				<label>Address: </label>
			</div>
			<div class="input-side">
				<input id="address" type="text" name="address" placeholder="Enter your address" required>
			</div>

			<div class="label-side">
				<label>Ages of Your Children (at the time you wish to start care): </label>
			</div>
			<div class="input-side">
				<input id="age" type="text" name="age" placeholder="Newborn, 9 months, 5 years old, etc." required>
			</div>

			<div class="label-side">
				<label>Begin Care Date: </label>
			</div>
			<div class="input-side">
				<input id="begin-care" type="text" name="begin-care" placeholder="mm/dd/yyyy" required>
			</div>

			<div class="label-side">
				<label>Days and Hours You Need Care: </label>
			</div>
			<div class="input-side">
				<input id="days-hours" type="text" name="days-hours" placeholder="M-F, 7:30 - 5:00" required>
			</div>

			<div class="label-side">
				<label>Primary location desired in Maple Grove (could be route you drive by or elementary school you are closest to): </label>
			</div>
			<div class="input-side">
				<input id="location" type="text" name="location" placeholder="Near Bass Lake and 494" required>
			</div>

			<div class="label-side">
				<label>Message: </label>
			</div>
			<div class="input-side">
				<textarea id="message" placeholder="Additional Details"></textarea>
			</div>

		</div>

		<div id="button">
			<button id="submit">Submit</button>
		</div>
	</form>
</main>

            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Dosis');

/* GLOBAL */

body {
	font-family: 'Dosis', sans-serif;
	padding: 0;
	margin: 0;
	background-color: #79D2CC;
}

ul, h1, small, p {
	padding: 0;
	margin: 0;
}

.container {
	width: 80%;
	margin: auto;
	overflow: hidden;
}

/* Referrall Form */
main {
	background-color: #F9F6EC;
	margin: 0 auto;
	width: 50%;
	border-radius: 2%;
}

#description {
	text-align: center;
	padding-top: 30px;
	padding-bottom: 20px;
	font-size: 1.7em;
}

#input-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 1.7em 1em;
}

.label-side {
	justify-self: end;
	text-align: right;
	padding-left: 4em;
}

.input-side {
	justify-self: start;
}


#name, #email, #phone, #address, #age, #begin-care, #days-hours, #location {
	height: 2em;
	width: 20em;
}


#message {
	height: 15em;
	width: 20em;
}

#button {
	text-align: center;
	padding: 1.7em 0px;
}

#submit:hover {
	color: black;
}

#submit {
	height: 3em;
	width: 10em;
	border-style: none;
	border-radius: 2%;
	color: white;
	background-color: #B03B4C;
	letter-spacing: 0.4em;
	font-weight: bold;
	font-size: 1em;
	text-transform: uppercase;
	border: 2px solid black;
}

/* 
MEDIA QUERIES:
Smartphones: max-width: 480px;
iPads: min-width 768px ---- max-width: 1200px;
*/

@media (max-width: 576px){
  main {
    width: 85vw;
  }

  #input-form {
    grid-template-columns: 1fr;
  }

  .label-side {
    justify-self: start;
    text-align: left;
  }

  .input-side {
    justify-self: start;
    padding-left: 4em;
  }
  #name, #email, #phone, #address, #age, #begin-care, #days-hours, #location {
	width: 18em;
  }

}






            
          
!
999px
🕑 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 ..................

Console