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.

            
              <link href="http://go.pardot.com/css/form.css?ver=20121030" rel="stylesheet" type="text/css">

	<form accept-charset="UTF-8" action="http://go.pardot.com/x/xxxx/xxxxx" class="form" id="pardot-form" method="post" name="pardot-form">
		<div class="form-field first_name pd-text required">
			<input class="text" id="First_Namepi_First_Name" maxlength="40" name="First_Namepi_First_Name" onchange="" size="30" type="text" value=""> <label for="First_Namepi_First_Name">First Name</label>
			<div id="error_for_First_Namepi_First_Name" style="display:none"></div>
		</div>
		<div class="form-field last_name pd-text required">
			<input class="text" id="Last_Namepi_Last_Name" maxlength="80" name="Last_Namepi_Last_Name" onchange="" size="30" type="text" value=""> <label for="Last_Namepi_Last_Name">Last Name</label>
			<div id="error_for_Last_Namepi_Last_Name" style="display:none"></div>
		</div>
		<div class="form-field email pd-text required">
			<input class="text" id="Emailpi_Email" maxlength="255" name="Emailpi_Email" onchange="piAjax.auditEmailField(this, 93172, 2132, 2252);" size="30" type="text" value=""> <label for="Emailpi_Email">Email</label>
			<div id="error_for_Emailpi_Email" style="display:none"></div>
		</div>
		<div class="form-field company pd-text required">
			<input class="text" id="Companypi_Company" maxlength="255" name="Companypi_Company" onchange="" size="30" type="text" value=""> <label for="Companypi_Company">Company</label>
			<div id="error_for_Companypi_Company" style="display:none"></div>
		</div>
		<div class="form-field country-field country pd-select required">
			<select class="select" id="93172_63032pi_93172_63032" name="93172_63032pi_93172_63032" onchange="">
				<option selected="selected" value="659148">
				</option>
				<option value="659152">
					US
				</option>
				<option value="659154">
					Canada
				</option>
				<option value="659156">
					Afghanistan
				</option>
				<option value="659158">
					Albania
				</option>
				<option value="659160">
					Algeria
				</option>
				<option value="659164">
					American Samoa
				</option>
				<option value="659168">
					Andorra
				</option>
				<option value="659172">
					Angola
				</option>
				<option value="659174">
					Anguilla
				</option>
				<option value="659180">
					Antarctica
				</option>
				<option value="659192">
					Antigua and Barbuda
				</option>
				<option value="659196">
					Argentina
				</option>
				<option value="659200">
					Armenia
				</option>
				<option value="659204">
					Aruba
				</option>
				<option value="659208">
					Australia
				</option>
				<option value="659212">
					Austria
				</option>
				<option value="659216">
					Azerbaijan
				</option>
				<option value="659220">
					Bahamas
				</option>
				<option value="659224">
					Bahrain
				</option>
				<option value="659228">
					Bangladesh
				</option>
				<option value="659232">
					Barbados
				</option>
				<option value="659236">
					Belarus
				</option>
				<option value="659238">
					Belgium
				</option>
				<option value="659242">
					Belize
				</option>
				<option value="659246">
					Benin
				</option>
				<option value="659250">
					Bermuda
				</option>
				<option value="659254">
					Bhutan
				</option>
				<option value="659256">
					Bolivia
				</option>
				<option value="659258">
					Bosnia and Herzegovina
				</option>
				<option value="659260">
					Botswana
				</option>
				<option value="659262">
					Brazil
				</option>
				<option value="659264">
					British Indian Ocean Territory
				</option>
				<option value="659268">
					British Virgin Islands
				</option>
				<option value="659272">
					Brunei
				</option>
				<option value="659276">
					Bulgaria
				</option>
				<option value="659286">
					Burkina Faso
				</option>
				<option value="659290">
					Burundi
				</option>
				<option value="659294">
					Cambodia
				</option>
				<option value="659298">
					Cameroon
				</option>
				<option value="659302">
					Cape Verde
				</option>
				<option value="659306">
					Cayman Islands
				</option>
				<option value="659310">
					Central African Republic
				</option>
				<option value="659314">
					Chad
				</option>
				<option value="659318">
					Chile
				</option>
				<option value="659322">
					China
				</option>
				<option value="659326">
					Christmas Island
				</option>
				<option value="659330">
					Cocos (Keeling) Islands
				</option>
				<option value="659334">
					Colombia
				</option>
				<option value="659338">
					Comoros
				</option>
				<option value="659342">
					Congo
				</option>
				<option value="659346">
					Cook Islands
				</option>
				<option value="659352">
					Costa Rica
				</option>
				<option value="659356">
					Croatia
				</option>
				<option value="659358">
					Cuba
				</option>
				<option value="659360">
					Cura&ccedil;ao
				</option>
				<option value="659362">
					Cyprus
				</option>
				<option value="659364">
					Czech Republic
				</option>
				<option value="659366">
					C&ocirc;te d&rsquo;Ivoire
				</option>
				<option value="659368">
					Democratic Republic of the Congo
				</option>
				<option value="659372">
					Denmark
				</option>
				<option value="659378">
					Djibouti
				</option>
				<option value="659382">
					Dominica
				</option>
				<option value="659386">
					Dominican Republic
				</option>
				<option value="659392">
					Ecuador
				</option>
				<option value="659396">
					Egypt
				</option>
				<option value="659400">
					El Salvador
				</option>
				<option value="659404">
					Equatorial Guinea
				</option>
				<option value="659408">
					Eritrea
				</option>
				<option value="659412">
					Estonia
				</option>
				<option value="659416">
					Ethiopia
				</option>
				<option value="659420">
					Falkland Islands
				</option>
				<option value="659424">
					Faroe Islands
				</option>
				<option value="659428">
					Fiji
				</option>
				<option value="659432">
					Finland
				</option>
				<option value="659436">
					France
				</option>
				<option value="659440">
					French Guiana
				</option>
				<option value="659444">
					French Polynesia
				</option>
				<option value="659448">
					French Southern Territories
				</option>
				<option value="659450">
					Gabon
				</option>
				<option value="659456">
					Gambia
				</option>
				<option value="659460">
					Georgia
				</option>
				<option value="659464">
					Germany
				</option>
				<option value="659466">
					Ghana
				</option>
				<option value="659468">
					Gibraltar
				</option>
				<option value="659470">
					Greece
				</option>
				<option value="659474">
					Greenland
				</option>
				<option value="659480">
					Grenada
				</option>
				<option value="659484">
					Guadeloupe
				</option>
				<option value="659488">
					Guam
				</option>
				<option value="659492">
					Guatemala
				</option>
				<option value="659496">
					Guernsey
				</option>
				<option value="659500">
					Guinea
				</option>
				<option value="659504">
					Guinea-Bissau
				</option>
				<option value="659508">
					Guyana
				</option>
				<option value="659512">
					Haiti
				</option>
				<option value="659516">
					Honduras
				</option>
				<option value="659520">
					Hong Kong S.A.R., China
				</option>
				<option value="659524">
					Hungary
				</option>
				<option value="659528">
					Iceland
				</option>
				<option value="659532">
					India
				</option>
				<option value="659536">
					Indonesia
				</option>
				<option value="659540">
					Iran
				</option>
				<option value="659544">
					Iraq
				</option>
				<option value="659548">
					Ireland
				</option>
				<option value="659552">
					Isle of Man
				</option>
				<option value="659556">
					Israel
				</option>
				<option value="659560">
					Italy
				</option>
				<option value="659566">
					Jamaica
				</option>
				<option value="659568">
					Japan
				</option>
				<option value="659570">
					Jersey
				</option>
				<option value="659572">
					Jordan
				</option>
				<option value="659574">
					Kazakhstan
				</option>
				<option value="659576">
					Kenya
				</option>
				<option value="659580">
					Kiribati
				</option>
				<option value="659584">
					Kuwait
				</option>
				<option value="659586">
					Kyrgyzstan
				</option>
				<option value="659592">
					Laos
				</option>
				<option value="659596">
					Latvia
				</option>
				<option value="659600">
					Lebanon
				</option>
				<option value="659604">
					Lesotho
				</option>
				<option value="659608">
					Liberia
				</option>
				<option value="659612">
					Libya
				</option>
				<option value="659616">
					Liechtenstein
				</option>
				<option value="659620">
					Lithuania
				</option>
				<option value="659624">
					Luxembourg
				</option>
				<option value="659628">
					Macao S.A.R., China
				</option>
				<option value="659632">
					Macedonia
				</option>
				<option value="659636">
					Madagascar
				</option>
				<option value="659640">
					Malawi
				</option>
				<option value="659644">
					Malaysia
				</option>
				<option value="659648">
					Maldives
				</option>
				<option value="659650">
					Mali
				</option>
				<option value="659654">
					Malta
				</option>
				<option value="659658">
					Marshall Islands
				</option>
				<option value="659662">
					Martinique
				</option>
				<option value="659670">
					Mauritania
				</option>
				<option value="659674">
					Mauritius
				</option>
				<option value="659676">
					Mayotte
				</option>
				<option value="659678">
					Mexico
				</option>
				<option value="659680">
					Micronesia
				</option>
				<option value="659682">
					Moldova
				</option>
				<option value="659684">
					Monaco
				</option>
				<option value="659686">
					Mongolia
				</option>
				<option value="659688">
					Montenegro
				</option>
				<option value="659690">
					Montserrat
				</option>
				<option value="659692">
					Morocco
				</option>
				<option value="659694">
					Mozambique
				</option>
				<option value="659696">
					Myanmar
				</option>
				<option value="659698">
					Namibia
				</option>
				<option value="659700">
					Nauru
				</option>
				<option value="659702">
					Nepal
				</option>
				<option value="659704">
					Netherlands
				</option>
				<option value="659706">
					New Caledonia
				</option>
				<option value="659708">
					New Zealand
				</option>
				<option value="659710">
					Nicaragua
				</option>
				<option value="659712">
					Niger
				</option>
				<option value="659714">
					Nigeria
				</option>
				<option value="659716">
					Niue
				</option>
				<option value="659718">
					Norfolk Island
				</option>
				<option value="659720">
					North Korea
				</option>
				<option value="659722">
					Northern Mariana Islands
				</option>
				<option value="659724">
					Norway
				</option>
				<option value="659726">
					Oman
				</option>
				<option value="659728">
					Pakistan
				</option>
				<option value="659730">
					Palau
				</option>
				<option value="659732">
					Palestinian Territory
				</option>
				<option value="659734">
					Panama
				</option>
				<option value="659736">
					Papua New Guinea
				</option>
				<option value="659738">
					Paraguay
				</option>
				<option value="659740">
					Peru
				</option>
				<option value="659742">
					Philippines
				</option>
				<option value="659744">
					Pitcairn
				</option>
				<option value="659746">
					Poland
				</option>
				<option value="659748">
					Portugal
				</option>
				<option value="659750">
					Puerto Rico
				</option>
				<option value="659752">
					Qatar
				</option>
				<option value="659754">
					Romania
				</option>
				<option value="659756">
					Russia
				</option>
				<option value="659758">
					Rwanda
				</option>
				<option value="659760">
					R&eacute;union
				</option>
				<option value="659762">
					Saint Barth&eacute;lemy
				</option>
				<option value="659764">
					Saint Helena
				</option>
				<option value="659766">
					Saint Kitts and Nevis
				</option>
				<option value="659768">
					Saint Lucia
				</option>
				<option value="659770">
					Saint Pierre and Miquelon
				</option>
				<option value="659772">
					Saint Vincent and the Grenadines
				</option>
				<option value="659774">
					Samoa
				</option>
				<option value="659776">
					San Marino
				</option>
				<option value="659778">
					Sao Tome and Principe
				</option>
				<option value="659780">
					Saudi Arabia
				</option>
				<option value="659782">
					Senegal
				</option>
				<option value="659784">
					Serbia
				</option>
				<option value="659786">
					Seychelles
				</option>
				<option value="659788">
					Sierra Leone
				</option>
				<option value="659790">
					Singapore
				</option>
				<option value="659792">
					Slovakia
				</option>
				<option value="659794">
					Slovenia
				</option>
				<option value="659796">
					Solomon Islands
				</option>
				<option value="659798">
					Somalia
				</option>
				<option value="659800">
					South Africa
				</option>
				<option value="659802">
					South Korea
				</option>
				<option value="659804">
					South Sudan
				</option>
				<option value="659806">
					Spain
				</option>
				<option value="659808">
					Sri Lanka
				</option>
				<option value="659810">
					Sudan
				</option>
				<option value="659812">
					Suriname
				</option>
				<option value="659814">
					Svalbard and Jan Mayen
				</option>
				<option value="659816">
					Swaziland
				</option>
				<option value="659818">
					Sweden
				</option>
				<option value="659820">
					Switzerland
				</option>
				<option value="659822">
					Syria
				</option>
				<option value="659824">
					Taiwan
				</option>
				<option value="659826">
					Tajikistan
				</option>
				<option value="659828">
					Tanzania
				</option>
				<option value="659830">
					Thailand
				</option>
				<option value="659832">
					Timor-Leste
				</option>
				<option value="659834">
					Togo
				</option>
				<option value="659836">
					Tokelau
				</option>
				<option value="659838">
					Tonga
				</option>
				<option value="659840">
					Trinidad and Tobago
				</option>
				<option value="659842">
					Tunisia
				</option>
				<option value="659844">
					Turkey
				</option>
				<option value="659846">
					Turkmenistan
				</option>
				<option value="659848">
					Turks and Caicos Islands
				</option>
				<option value="659850">
					Tuvalu
				</option>
				<option value="659852">
					U.S. Virgin Islands
				</option>
				<option value="659854">
					Uganda
				</option>
				<option value="659856">
					Ukraine
				</option>
				<option value="659858">
					United Arab Emirates
				</option>
				<option value="659860">
					United Kingdom
				</option>
				<option value="659862">
					United States Minor Outlying Islands
				</option>
				<option value="659864">
					Uruguay
				</option>
				<option value="659866">
					Uzbekistan
				</option>
				<option value="659868">
					Vanuatu
				</option>
				<option value="659870">
					Vatican
				</option>
				<option value="659872">
					Venezuela
				</option>
				<option value="659874">
					Viet Nam
				</option>
				<option value="659876">
					Wallis and Futuna
				</option>
				<option value="659878">
					Western Sahara
				</option>
				<option value="659880">
					Yemen
				</option>
				<option value="659882">
					Zambia
				</option>
				<option value="659884">
					Zimbabwe
				</option>
			</select> <label for="93172_63032pi_93172_63032">Country</label>
			<div id="error_for_93172_63032pi_93172_63032" style="display:none"></div>
		</div>
		<div class="form-field comments pd-textarea required">
			<textarea class="standard" cols="40" id="93172_75816pi_93172_75816" name="93172_75816pi_93172_75816" onchange="" rows="10"></textarea> <label for="93172_75816pi_93172_75816">Comments</label>
			<div id="error_for_93172_75816pi_93172_75816" style="display:none"></div>
		</div>
		<p style="position:absolute; width:190px; left:-9999px; top: -9999px;visibility:hidden;"><label for="pi_extra_field">Comments</label> <input id="pi_extra_field" name="pi_extra_field" type="text"></p><!-- forces IE5-8 to correctly submit UTF8 content  -->
		<input name="_utf8" type="hidden" value="&#9731;">
	<p class="submit"><input accesskey="s" type="submit" value="Submit"></p>
	</form>
            
          
!
            
               /* The below styles are required for the floating labels */
.form-field {
  text-align: left;
  position: relative;
  margin-bottom:15px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field button,
.form-field select {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #c6c6c6;
  width: 100% !important;
  color: #888;
  font-size: 16px;
  font-weight: 300;
  background-color: #fff;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  box-sizing:border-box;
}
.form-field input[type="text"]:focus, 
.form-field input[type="text"]:hover,
.form-field input[type="email"]:focus,
.form-field input[type="email"]:hover,
.form-field input[type="tel"]:focus,
.form-field input[type="tel"]:hover,
.form-field textarea:focus,
.form-field textarea:hover,
.form-field button:focus,
.form-field button:hover,
.form-field select:focus,
.form-field select:hover {
  outline: none;
  border-color: #56CFD2;
}
.form-field input[type="text"]:focus + label, 
.form-field input[type="text"]:hover + label,
.form-field input[type="email"]:focus + label,
.form-field input[type="email"]:hover + label,
.form-field input[type="tel"]:focus + label,
.form-field input[type="tel"]:hover + label,
.form-field textarea:focus + label,
.form-field textarea:hover + label,
.form-field button:focus + label,
.form-field button:hover + label,
.form-field select:focus + label,
.form-field select:hover + label {
  color: #56CFD2;
  cursor: text;
}
.pd-text label, .pd-select label, .pd-textarea label {
  position: absolute;
  left: 8px;
  top: 12px;
  color: #999;
  font-size: 16px;
  display: inline-block;
  padding: 4px 10px;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
  -moz-transition: color 0.3s, top 0.3s, background-color 0.8s;
  -o-transition: color 0.3s, top 0.3s, background-color 0.8s;
  -webkit-transition: color 0.3s, top 0.3s, background-color 0.8s;
  transition: color 0.3s, top 0.3s, background-color 0.8s;
}
.pd-text label.active, 
.pd-select label.active, 
.pd-textarea label.active {
  top: -11px;
  color: #555;
  background-color: white;
}
.form-field textarea {
  resize: none;
  height: 200px;
}
form.form select {
    height:50px;
    -webkit-appearance: none; 
   -moz-appearance: none;
   appearance: none; 
}
/* Style the Pardot error messages */
form.form div.error {
    padding:0 !important;
}
form.form p.no-label, form.form p.email-pref {
    margin:0 !important;
}


/* Additonal styling for this example */
body {
  background-color:#56CFD2;
  padding:10px 0;
}
#pardot-form {
  background:#FFF;
  padding:25px;
  width:100%;
  max-width:450px;
  margin:0 auto;
  box-sizing:border-box;
  border-radius:5px;
  -moz-border-radisu:5px;
  -webkit-border-radius:5px;
}
#pardot-form p.submit {
  width:100%;
  margin-left:0;
}
#pardot-form input[type=submit] {
  background-color:#de4383;
  color:#FFF;
  font-size:16px;
  border:0;
  padding:13px 30px;
  text-transform:uppercase;
  width:100%;
  letter-spacing:1px;
  font-weight:bold;
}
            
          
!
            
              $('input[type=text], select, textarea').addClass('floatLabel');
(function($){
	function floatLabel(inputType){
		$(inputType).each(function(){
			var $this = $(this);
			// on focus add cladd active to label
			$this.focus(function(){
				$this.next().addClass("active");
			});
			//on blur check field and remove class if needed
			$this.blur(function(){
				if($this.val() === '' || $this.val() === 'blank'){
					$this.next().removeClass();
				}
			});
		});
	}
	// just add a class of "floatLabel to the input field!"
	floatLabel(".floatLabel");
})(jQuery);
            
          
!
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