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.

            
              <div class="col">
  <h2>Before</h2>
<p class="form-field pd-select required    ">
<label class="field-label" for="93172_75384pi_93172_75384">Country</label>
<select name="93172_75384pi_93172_75384" id="93172_75384pi_93172_75384" class="select" onchange=""><option value="800738" selected="selected"></option>
<option value="800740">United States</option>
<option value="800742">Canada</option>
<option value="800744">Afghanistan</option>
<option value="800746">Albania</option>
<option value="800748">Algeria</option>
<option value="800750">American Samoa</option>
<option value="800752">Andorra</option>
<option value="800754">Angola</option>
<option value="800756">Anguilla</option>
<option value="800758">Antarctica</option>
<option value="800760">Antigua and Barbuda</option>
<option value="800762">Argentina</option>
<option value="800764">Armenia</option>
<option value="800766">Aruba</option>
<option value="800768">Australia</option>
<option value="800770">Austria</option>
<option value="800772">Azerbaijan</option>
<option value="800774">Bahamas</option>
<option value="800776">Bahrain</option>
<option value="800778">Bangladesh</option>
<option value="800780">Barbados</option>
<option value="800782">Belarus</option>
<option value="800784">Belgium</option>
<option value="800786">Belize</option>
<option value="800788">Benin</option>
<option value="800790">Bermuda</option>
<option value="800792">Bhutan</option>
<option value="800794">Bolivia</option>
<option value="800796">Bosnia and Herzegovina</option>
<option value="800798">Botswana</option>
<option value="800800">Brazil</option>
<option value="800802">British Indian Ocean Territory</option>
<option value="800804">British Virgin Islands</option>
<option value="800806">Brunei</option>
<option value="800808">Bulgaria</option>
<option value="800810">Burkina Faso</option>
<option value="800812">Burundi</option>
<option value="800814">Cambodia</option>
<option value="800816">Cameroon</option>
<option value="800818">Cape Verde</option>
<option value="800820">Cayman Islands</option>
<option value="800822">Central African Republic</option>
<option value="800824">Chad</option>
<option value="800826">Chile</option>
<option value="800828">China</option>
<option value="800830">Christmas Island</option>
<option value="800832">Cocos (Keeling) Islands</option>
<option value="800834">Colombia</option>
<option value="800836">Comoros</option>
<option value="800838">Congo</option>
<option value="800840">Cook Islands</option>
<option value="800842">Costa Rica</option>
<option value="800844">Croatia</option>
<option value="800846">Cuba</option>
<option value="800848">Curaçao</option>
<option value="800850">Cyprus</option>
<option value="800852">Czech Republic</option>
<option value="800854">Côte d’Ivoire</option>
<option value="800856">Democratic Republic of the Congo</option>
<option value="800858">Denmark</option>
<option value="800860">Djibouti</option>
<option value="800862">Dominica</option>
<option value="800864">Dominican Republic</option>
<option value="800866">Ecuador</option>
<option value="800868">Egypt</option>
<option value="800870">El Salvador</option>
<option value="800872">Equatorial Guinea</option>
<option value="800874">Eritrea</option>
<option value="800876">Estonia</option>
<option value="800878">Ethiopia</option>
<option value="800880">Falkland Islands</option>
<option value="800882">Faroe Islands</option>
<option value="800884">Fiji</option>
<option value="800886">Finland</option>
<option value="800888">France</option>
<option value="800890">French Guiana</option>
<option value="800892">French Polynesia</option>
<option value="800894">French Southern Territories</option>
<option value="800896">Gabon</option>
<option value="800898">Gambia</option>
<option value="800900">Georgia</option>
<option value="800902">Germany</option>
<option value="800904">Ghana</option>
<option value="800906">Gibraltar</option>
<option value="800908">Greece</option>
<option value="800910">Greenland</option>
<option value="800912">Grenada</option>
<option value="800914">Guadeloupe</option>
<option value="800916">Guam</option>
<option value="800918">Guatemala</option>
<option value="800920">Guernsey</option>
<option value="800922">Guinea</option>
<option value="800924">Guinea-Bissau</option>
<option value="800926">Guyana</option>
<option value="800928">Haiti</option>
<option value="800930">Honduras</option>
<option value="800932">Hong Kong S.A.R., China</option>
<option value="800934">Hungary</option>
<option value="800936">Iceland</option>
<option value="800938">India</option>
<option value="800940">Indonesia</option>
<option value="800942">Iran</option>
<option value="800944">Iraq</option>
<option value="800946">Ireland</option>
<option value="800948">Isle of Man</option>
<option value="800950">Israel</option>
<option value="800952">Italy</option>
<option value="800954">Jamaica</option>
<option value="800956">Japan</option>
<option value="800958">Jersey</option>
<option value="800960">Jordan</option>
<option value="800962">Kazakhstan</option>
<option value="800964">Kenya</option>
<option value="800966">Kiribati</option>
<option value="800968">Kuwait</option>
<option value="800970">Kyrgyzstan</option>
<option value="800972">Laos</option>
<option value="800974">Latvia</option>
<option value="800976">Lebanon</option>
<option value="800978">Lesotho</option>
<option value="800980">Liberia</option>
<option value="800982">Libya</option>
<option value="800984">Liechtenstein</option>
<option value="800986">Lithuania</option>
<option value="800988">Luxembourg</option>
<option value="800990">Macao S.A.R., China</option>
<option value="800992">Macedonia</option>
<option value="800994">Madagascar</option>
<option value="800996">Malawi</option>
<option value="800998">Malaysia</option>
<option value="801000">Maldives</option>
<option value="801002">Mali</option>
<option value="801004">Malta</option>
<option value="801006">Marshall Islands</option>
<option value="801008">Martinique</option>
<option value="801010">Mauritania</option>
<option value="801012">Mauritius</option>
<option value="801014">Mayotte</option>
<option value="801016">Mexico</option>
<option value="801018">Micronesia</option>
<option value="801020">Moldova</option>
<option value="801022">Monaco</option>
<option value="801024">Mongolia</option>
<option value="801026">Montenegro</option>
<option value="801028">Montserrat</option>
<option value="801030">Morocco</option>
<option value="801032">Mozambique</option>
<option value="801034">Myanmar</option>
<option value="801036">Namibia</option>
<option value="801038">Nauru</option>
<option value="801040">Nepal</option>
<option value="801042">Netherlands</option>
<option value="801044">New Caledonia</option>
<option value="801046">New Zealand</option>
<option value="801048">Nicaragua</option>
<option value="801050">Niger</option>
<option value="801052">Nigeria</option>
<option value="801054">Niue</option>
<option value="801056">Norfolk Island</option>
<option value="801058">North Korea</option>
<option value="801060">Northern Mariana Islands</option>
<option value="801062">Norway</option>
<option value="801064">Oman</option>
<option value="801066">Pakistan</option>
<option value="801068">Palau</option>
<option value="801070">Palestinian Territory</option>
<option value="801072">Panama</option>
<option value="801074">Papua New Guinea</option>
<option value="801076">Paraguay</option>
<option value="801078">Peru</option>
<option value="801080">Philippines</option>
<option value="801082">Pitcairn</option>
<option value="801084">Poland</option>
<option value="801086">Portugal</option>
<option value="801088">Puerto Rico</option>
<option value="801090">Qatar</option>
<option value="801092">Romania</option>
<option value="801094">Russia</option>
<option value="801096">Rwanda</option>
<option value="801098">Réunion</option>
<option value="801100">Saint Barthélemy</option>
<option value="801102">Saint Helena</option>
<option value="801104">Saint Kitts and Nevis</option>
<option value="801106">Saint Lucia</option>
<option value="801108">Saint Pierre and Miquelon</option>
<option value="801110">Saint Vincent and the Grenadines</option>
<option value="801112">Samoa</option>
<option value="801114">San Marino</option>
<option value="801116">Sao Tome and Principe</option>
<option value="801118">Saudi Arabia</option>
<option value="801120">Senegal</option>
<option value="801122">Serbia</option>
<option value="801124">Seychelles</option>
<option value="801126">Sierra Leone</option>
<option value="801128">Singapore</option>
<option value="801130">Slovakia</option>
<option value="801132">Slovenia</option>
<option value="801134">Solomon Islands</option>
<option value="801136">Somalia</option>
<option value="801138">South Africa</option>
<option value="801140">South Korea</option>
<option value="801142">South Sudan</option>
<option value="801144">Spain</option>
<option value="801146">Sri Lanka</option>
<option value="801148">Sudan</option>
<option value="801150">Suriname</option>
<option value="801152">Svalbard and Jan Mayen</option>
<option value="801154">Swaziland</option>
<option value="801156">Sweden</option>
<option value="801158">Switzerland</option>
<option value="801160">Syria</option>
<option value="801162">Taiwan</option>
<option value="801164">Tajikistan</option>
<option value="801166">Tanzania</option>
<option value="801168">Thailand</option>
<option value="801170">Timor-Leste</option>
<option value="801172">Togo</option>
<option value="801174">Tokelau</option>
<option value="801176">Tonga</option>
<option value="801178">Trinidad and Tobago</option>
<option value="801180">Tunisia</option>
<option value="801182">Turkey</option>
<option value="801184">Turkmenistan</option>
<option value="801186">Turks and Caicos Islands</option>
<option value="801188">Tuvalu</option>
<option value="801190">U.S. Virgin Islands</option>
<option value="801192">Uganda</option>
<option value="801194">Ukraine</option>
<option value="801196">United Arab Emirates</option>
<option value="801198">United Kingdom</option>
<option value="801200">United States Minor Outlying Islands</option>
<option value="801202">Uruguay</option>
<option value="801204">Uzbekistan</option>
<option value="801206">Vanuatu</option>
<option value="801208">Vatican</option>
<option value="801210">Venezuela</option>
<option value="801212">Viet Nam</option>
<option value="801214">Wallis and Futuna</option>
<option value="801216">Western Sahara</option>
<option value="801218">Yemen</option>
<option value="801220">Zambia</option>
<option value="801222">Zimbabwe</option>
</select>
</p>
</div>
<div class="col">
  <h2>After</h2>
<p class="form-field  country pd-select required    ">
<label class="field-label" for="93172_75384pi_93172_75384">Country</label>
<select name="93172_75384pi_93172_75384" id="93172_75384pi_93172_75384" class="select" onchange=""><option value="800738" selected="selected"></option>
<option value="800740">United States</option>
<option value="800742">Canada</option>
<option value="800744">Afghanistan</option>
<option value="800746">Albania</option>
<option value="800748">Algeria</option>
<option value="800750">American Samoa</option>
<option value="800752">Andorra</option>
<option value="800754">Angola</option>
<option value="800756">Anguilla</option>
<option value="800758">Antarctica</option>
<option value="800760">Antigua and Barbuda</option>
<option value="800762">Argentina</option>
<option value="800764">Armenia</option>
<option value="800766">Aruba</option>
<option value="800768">Australia</option>
<option value="800770">Austria</option>
<option value="800772">Azerbaijan</option>
<option value="800774">Bahamas</option>
<option value="800776">Bahrain</option>
<option value="800778">Bangladesh</option>
<option value="800780">Barbados</option>
<option value="800782">Belarus</option>
<option value="800784">Belgium</option>
<option value="800786">Belize</option>
<option value="800788">Benin</option>
<option value="800790">Bermuda</option>
<option value="800792">Bhutan</option>
<option value="800794">Bolivia</option>
<option value="800796">Bosnia and Herzegovina</option>
<option value="800798">Botswana</option>
<option value="800800">Brazil</option>
<option value="800802">British Indian Ocean Territory</option>
<option value="800804">British Virgin Islands</option>
<option value="800806">Brunei</option>
<option value="800808">Bulgaria</option>
<option value="800810">Burkina Faso</option>
<option value="800812">Burundi</option>
<option value="800814">Cambodia</option>
<option value="800816">Cameroon</option>
<option value="800818">Cape Verde</option>
<option value="800820">Cayman Islands</option>
<option value="800822">Central African Republic</option>
<option value="800824">Chad</option>
<option value="800826">Chile</option>
<option value="800828">China</option>
<option value="800830">Christmas Island</option>
<option value="800832">Cocos (Keeling) Islands</option>
<option value="800834">Colombia</option>
<option value="800836">Comoros</option>
<option value="800838">Congo</option>
<option value="800840">Cook Islands</option>
<option value="800842">Costa Rica</option>
<option value="800844">Croatia</option>
<option value="800846">Cuba</option>
<option value="800848">Curaçao</option>
<option value="800850">Cyprus</option>
<option value="800852">Czech Republic</option>
<option value="800854">Côte d’Ivoire</option>
<option value="800856">Democratic Republic of the Congo</option>
<option value="800858">Denmark</option>
<option value="800860">Djibouti</option>
<option value="800862">Dominica</option>
<option value="800864">Dominican Republic</option>
<option value="800866">Ecuador</option>
<option value="800868">Egypt</option>
<option value="800870">El Salvador</option>
<option value="800872">Equatorial Guinea</option>
<option value="800874">Eritrea</option>
<option value="800876">Estonia</option>
<option value="800878">Ethiopia</option>
<option value="800880">Falkland Islands</option>
<option value="800882">Faroe Islands</option>
<option value="800884">Fiji</option>
<option value="800886">Finland</option>
<option value="800888">France</option>
<option value="800890">French Guiana</option>
<option value="800892">French Polynesia</option>
<option value="800894">French Southern Territories</option>
<option value="800896">Gabon</option>
<option value="800898">Gambia</option>
<option value="800900">Georgia</option>
<option value="800902">Germany</option>
<option value="800904">Ghana</option>
<option value="800906">Gibraltar</option>
<option value="800908">Greece</option>
<option value="800910">Greenland</option>
<option value="800912">Grenada</option>
<option value="800914">Guadeloupe</option>
<option value="800916">Guam</option>
<option value="800918">Guatemala</option>
<option value="800920">Guernsey</option>
<option value="800922">Guinea</option>
<option value="800924">Guinea-Bissau</option>
<option value="800926">Guyana</option>
<option value="800928">Haiti</option>
<option value="800930">Honduras</option>
<option value="800932">Hong Kong S.A.R., China</option>
<option value="800934">Hungary</option>
<option value="800936">Iceland</option>
<option value="800938">India</option>
<option value="800940">Indonesia</option>
<option value="800942">Iran</option>
<option value="800944">Iraq</option>
<option value="800946">Ireland</option>
<option value="800948">Isle of Man</option>
<option value="800950">Israel</option>
<option value="800952">Italy</option>
<option value="800954">Jamaica</option>
<option value="800956">Japan</option>
<option value="800958">Jersey</option>
<option value="800960">Jordan</option>
<option value="800962">Kazakhstan</option>
<option value="800964">Kenya</option>
<option value="800966">Kiribati</option>
<option value="800968">Kuwait</option>
<option value="800970">Kyrgyzstan</option>
<option value="800972">Laos</option>
<option value="800974">Latvia</option>
<option value="800976">Lebanon</option>
<option value="800978">Lesotho</option>
<option value="800980">Liberia</option>
<option value="800982">Libya</option>
<option value="800984">Liechtenstein</option>
<option value="800986">Lithuania</option>
<option value="800988">Luxembourg</option>
<option value="800990">Macao S.A.R., China</option>
<option value="800992">Macedonia</option>
<option value="800994">Madagascar</option>
<option value="800996">Malawi</option>
<option value="800998">Malaysia</option>
<option value="801000">Maldives</option>
<option value="801002">Mali</option>
<option value="801004">Malta</option>
<option value="801006">Marshall Islands</option>
<option value="801008">Martinique</option>
<option value="801010">Mauritania</option>
<option value="801012">Mauritius</option>
<option value="801014">Mayotte</option>
<option value="801016">Mexico</option>
<option value="801018">Micronesia</option>
<option value="801020">Moldova</option>
<option value="801022">Monaco</option>
<option value="801024">Mongolia</option>
<option value="801026">Montenegro</option>
<option value="801028">Montserrat</option>
<option value="801030">Morocco</option>
<option value="801032">Mozambique</option>
<option value="801034">Myanmar</option>
<option value="801036">Namibia</option>
<option value="801038">Nauru</option>
<option value="801040">Nepal</option>
<option value="801042">Netherlands</option>
<option value="801044">New Caledonia</option>
<option value="801046">New Zealand</option>
<option value="801048">Nicaragua</option>
<option value="801050">Niger</option>
<option value="801052">Nigeria</option>
<option value="801054">Niue</option>
<option value="801056">Norfolk Island</option>
<option value="801058">North Korea</option>
<option value="801060">Northern Mariana Islands</option>
<option value="801062">Norway</option>
<option value="801064">Oman</option>
<option value="801066">Pakistan</option>
<option value="801068">Palau</option>
<option value="801070">Palestinian Territory</option>
<option value="801072">Panama</option>
<option value="801074">Papua New Guinea</option>
<option value="801076">Paraguay</option>
<option value="801078">Peru</option>
<option value="801080">Philippines</option>
<option value="801082">Pitcairn</option>
<option value="801084">Poland</option>
<option value="801086">Portugal</option>
<option value="801088">Puerto Rico</option>
<option value="801090">Qatar</option>
<option value="801092">Romania</option>
<option value="801094">Russia</option>
<option value="801096">Rwanda</option>
<option value="801098">Réunion</option>
<option value="801100">Saint Barthélemy</option>
<option value="801102">Saint Helena</option>
<option value="801104">Saint Kitts and Nevis</option>
<option value="801106">Saint Lucia</option>
<option value="801108">Saint Pierre and Miquelon</option>
<option value="801110">Saint Vincent and the Grenadines</option>
<option value="801112">Samoa</option>
<option value="801114">San Marino</option>
<option value="801116">Sao Tome and Principe</option>
<option value="801118">Saudi Arabia</option>
<option value="801120">Senegal</option>
<option value="801122">Serbia</option>
<option value="801124">Seychelles</option>
<option value="801126">Sierra Leone</option>
<option value="801128">Singapore</option>
<option value="801130">Slovakia</option>
<option value="801132">Slovenia</option>
<option value="801134">Solomon Islands</option>
<option value="801136">Somalia</option>
<option value="801138">South Africa</option>
<option value="801140">South Korea</option>
<option value="801142">South Sudan</option>
<option value="801144">Spain</option>
<option value="801146">Sri Lanka</option>
<option value="801148">Sudan</option>
<option value="801150">Suriname</option>
<option value="801152">Svalbard and Jan Mayen</option>
<option value="801154">Swaziland</option>
<option value="801156">Sweden</option>
<option value="801158">Switzerland</option>
<option value="801160">Syria</option>
<option value="801162">Taiwan</option>
<option value="801164">Tajikistan</option>
<option value="801166">Tanzania</option>
<option value="801168">Thailand</option>
<option value="801170">Timor-Leste</option>
<option value="801172">Togo</option>
<option value="801174">Tokelau</option>
<option value="801176">Tonga</option>
<option value="801178">Trinidad and Tobago</option>
<option value="801180">Tunisia</option>
<option value="801182">Turkey</option>
<option value="801184">Turkmenistan</option>
<option value="801186">Turks and Caicos Islands</option>
<option value="801188">Tuvalu</option>
<option value="801190">U.S. Virgin Islands</option>
<option value="801192">Uganda</option>
<option value="801194">Ukraine</option>
<option value="801196">United Arab Emirates</option>
<option value="801198">United Kingdom</option>
<option value="801200">United States Minor Outlying Islands</option>
<option value="801202">Uruguay</option>
<option value="801204">Uzbekistan</option>
<option value="801206">Vanuatu</option>
<option value="801208">Vatican</option>
<option value="801210">Venezuela</option>
<option value="801212">Viet Nam</option>
<option value="801214">Wallis and Futuna</option>
<option value="801216">Western Sahara</option>
<option value="801218">Yemen</option>
<option value="801220">Zambia</option>
<option value="801222">Zimbabwe</option>
</select>
</p>
</div>
            
          
!
            
              body {
   font-family:Arial,Verdana,Sans-serif;
  font-size:14px;
  color:#333;
}
label {
  display:block;
  padding-bottom:5px;
}
.col {
  width:230px;
  float:left;
}
            
          
!
            
              $(".country select").chosen({no_results_text: "Oops, nothing found!"}); 
            
          
!
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