Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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 type="text/javascript" src="//use.typekit.net/uvs8amk.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

<div class="form">
  <input placeholder="Zip Code">
<select data-placeholder="&nbsp;Year" class="chzn-select year" style="width:70px;" tabindex="1" id="year">
<option value=""></option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
</select><select data-placeholder="Make" class="chzn-select" style="width:115px;" tabindex="2" id="make">
<option value=""></option>
<option value="ACURA">ACURA</option>
<option value="ASTON MARTIN">ASTON MARTIN</option>
<option value="AUDI">AUDI</option>
<option value="BENTLEY">BENTLEY</option>
<option value="BMW">BMW</option>
<option value="BUICK">BUICK</option>
<option value="CADILLAC">CADILLAC</option>
<option value="CHEVROLET">CHEVROLET</option>
<option value="CHRYSLER">CHRYSLER</option>
<option value="DODGE">DODGE</option>
<option value="FERRARI">FERRARI</option>
<option value="FORD">FORD</option>
<option value="GMC">GMC</option>
<option value="HONDA">HONDA</option>
<option value="HUMMER">HUMMER</option>
<option value="HYUNDAI">HYUNDAI</option>
<option value="INFINITI">INFINITI</option>
<option value="ISUZU">ISUZU</option>
<option value="JAGUAR">JAGUAR</option>
<option value="JEEP">JEEP</option>
<option value="KIA">KIA</option>
<option value="LAMBORGHINI">LAMBORGHINI</option>
<option value="LAND ROVER">LAND ROVER</option>
<option value="LEXUS">LEXUS</option>
<option value="LINCOLN">LINCOLN</option>
<option value="LOTUS">LOTUS</option>
<option value="MASERATI">MASERATI</option>
<option value="MAYBACH">MAYBACH</option>
<option value="MAZDA">MAZDA</option>
<option value="MERCEDES-BENZ">MERCEDES-BENZ</option>
<option value="MERCURY">MERCURY</option>
<option value="MINI">MINI</option>
<option value="MITSUBISHI">MITSUBISHI</option>
<option value="NISSAN">NISSAN</option>
<option value="PONTIAC">PONTIAC</option>
<option value="PORSCHE">PORSCHE</option>
<option value="ROLLS-ROYCE">ROLLS-ROYCE</option>
<option value="SAAB">SAAB</option>
<option value="SATURN">SATURN</option>
<option value="SUBARU">SUBARU</option>
<option value="SUZUKI">SUZUKI</option>
<option value="TOYOTA">TOYOTA</option>
<option value="VOLKSWAGEN">VOLKSWAGEN</option>
<option value="VOLVO">VOLVO</option>
</select><select data-placeholder="Model" class="chzn-select" style="width:115px;" tabindex="3" id="model">
<option value=""></option>
<option value="COMMANDER">COMMANDER</option>
<option value="COMPASS">COMPASS</option>
<option value="GRAND CHEROKEE">GRAND CHEROKEE</option>
<option value="LIBERTY">LIBERTY</option>
<option value="PATRIOT">PATRIOT</option>
<option value="WRANGLER">WRANGLER</option>
</select><select data-placeholder="Trim" class="chzn-select" style="width:100px;" tabindex="4" id="trim">
<option value=""></option>
<option value="LIMITED">LIMITED</option>
<option value="UNLIMITED">UNLIMITED</option>
<option value="SPORT">SPORT</option>
<option value="RENEGADE">RENEGADE</option>
</select>
    
<div class="checkbox">
  <label for="checkbox" class="text">Currently Insured?</label>
  		<input type="checkbox" id="checkbox" value="1" checked="checked" />
	  	<label class="box" for="checkbox"></label>
  	</div>
    
 <a href="#" class="button">LET'S GO!</a>
    
  </div>
              
            
!

CSS

              
                html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, a,
    font, img, dl, dt, dd, ol, ul, li, legend, table, tbody, tr, th, td 
    {margin:0px;padding:0px;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;list-style:none;}
    a img {border: none;}
    ol li {list-style: decimal outside;}
    fieldset {border:0;padding:0;}
    
    body { font-family: sans-serif; font-size: 1em; }
    
    div#container { width: 780px; margin: 0 auto; padding: 1em 0;  }
    p { margin: 1em 0; max-width: 700px; }
    h1 + p { margin-top: 0; }
    
    h1, h2 { font-family: Georgia, Times, serif; }
    h1 { font-size: 2em; margin-bottom: .75em; }
    h2 { font-size: 1.5em; margin: 2.5em 0 .5em; border-bottom: 1px solid #999; padding-bottom: 5px; }
    h3 { font-weight: bold; }
    
    ul li { list-style: disc; margin-left: 1em; }
    ol li { margin-left: 1.25em; }
    
    div.side-by-side { width: 100%; margin-bottom: 1em; }
    div.side-by-side > div { float: left; width: 50%; }
    div.side-by-side > div > em { margin-bottom: 10px; display: block; }
    
body, input{ font-family:"proxima-nova", "Proxima Nova";}

    a { color: orange; text-decoration: underline; }
.chzn-container-active .chzn-single {box-shadow        : none; border: 1px solid #aaa;}
body{padding:100px; background:#57cbe5 url(https://s3.amazonaws.com/izapp-production-static/homepage/images/backgrounds/masthead_bg.png?1d5fcd3318fa) no-repeat center -100px;}
#year_chzn .chzn-search input{display:none}
#trim_chzn{display:none;}
#year_chzn, #make_chzn, #model_chzn{}
#year_chzn a{border-top-right-radius:0px; border-bottom-right-radius:0px;}
#make_chzn a{border-radius:0px}
#model_chzn a{border-top-left-radius:0px; border-bottom-left-radius:0px;}
#trim_chzn a{border-top-left-radius:0px; border-bottom-left-radius:0px;}
.square a{border-radius:0px !important;}
.chzn-container-single .chzn-single{height:38px; line-height:38px;}
.chzn-container-single .chzn-single div{width:16px;}
.chzn-container-single .chzn-single div b {background-position: -2px 9px; height:35px;}
.chzn-container-active.chzn-with-drop .chzn-single div b {background-position: -20px 9px;}


.chzn-container-single{}
.chzn-container-single .chzn-single{background:#fff; border-radius:2px; border:none; border-bottom:3px solid rgba(0,0,0,0.3); box-shadow: inset 1px 0px 0px 0px rgba(0, 0, 0, 0.1);}
#year_chzn{box-shadow:none;}
.chzn-container-active.chzn-with-drop .chzn-single{background:#fff; border:none; border-top:none; height:41px;}
.chzn-container-single .chzn-drop{border-radius:0 0 2px 2px; border:none; box-shadow:none;}
.chzn-container .chzn-results .highlighted{background:#22c6b8; border-radius:2px}

input{border:0; border-bottom:3px solid rgba(0,0,0,0.3); border-radius:2px; height:38px; padding:0 10px; font-size:13px !important; width:65px; position:relative; top:-1px; outline: none; margin:0 10px 0 0;}

.checkbox { height:41px; position: relative; display:inline; color:#aaa; padding:0 32px 0 0; top:-3px; margin:0 0 0 12px;}
.checkbox input[type=checkbox]{display:none;}
.checkbox .box { cursor: pointer; position: absolute; width: 25px; height: 25px;	top: 0;	right: 0; background: #fff; border-radius:2px; border-bottom:3px solid rgba(0,0,0,0.3);}
.checkbox .box:after {
	content: '';
	position: absolute;
	width: 9px;
	height: 5px;
	background: transparent;
	top: 6px;
	left: 7px;
	border: 3px solid #fff;
	border-top: none;
	border-right: none;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.checkbox .box:hover::after {
	border-color:#ccc;
}
.checkbox input[type=checkbox]:checked + .box:after {
  border-color:#22c6b8;
}
.checkbox input[type=checkbox]:checked + .box {
	background:#fff;
}
.checkbox .text{position:relative; top:4px; cursor:pointer; font-size:14px;}

a.button {background:#0bb4a6; color:#fff; display:inline-block; text-decoration:none; height:38px; line-height:40px; padding:0 25px; border-radius:2px; border-bottom:3px solid #07736a; font-size:14px; letter-spacing:0.08em; margin:0 0 0 16px;}
a.button:hover{border-bottom:5px solid #07736a; position:relative; top:-2px; background:#0fbbad;}
a.button:active{border-bottom:3px solid #07736a; position:relative; top:0px;}

.form {height:55px;
background-color: #5c5c5c;
border-radius: 2px;
margin: 0 0 0 -366px;
position: absolute;
top: 127px;
left: 50%;padding:13px 14px 0 14px; }
              
            
!

JS

              
                setTimeout(function() {
    $('input').addClass('animated tada');
}, 3000);

setTimeout(function() {
    $('.form').addClass('animated bounce');
}, 7000);

var config = {
      '.chzn-select'           : {},
      '.chzn-select-deselect'  : {allow_single_deselect:true},
      '.chzn-select-no-single' : {disable_search_threshold:10},
      '.chzn-select-no-results': {no_results_text:'Oops, nothing found!'},
      '.chzn-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }

$('body').on('change', '#model', function() {
        $('#trim_chzn').css('display', 'inline-block').addClass("chzn-container-active chzn-with-drop");
  $('#model_chzn, #make_chzn').width("auto").addClass('square');
  
  setTimeout(function() {
    $('#trim_chzn input').focus();
}, 200);
    });

$('body').on('change', '#year', function() {
       $('#make_chzn').addClass("chzn-container-active chzn-with-drop");
  
  setTimeout(function() {
    $('#make_chzn input').focus();
}, 200);

});

$('body').on('change', '#make', function() {
       $('#model_chzn').addClass("chzn-container-active chzn-with-drop");
  
setTimeout(function() {
    $('#model_chzn input').focus();
}, 200);
  
    });
              
            
!
999px

Console