Pen Settings

HTML

CSS

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

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

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.

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

              
                <select id="fuzzOptionsList">
  <option value="1">Tapout Bail Bonds - 870, North 1st Street, San Jose (408-288-2245)
  </option>
  <option value="2">Four Seasons Cleaning Services - 6570 Grant Ct, Hollywood (954-961-2080)
  </option>
  <option value="3">Ike's Place - 3489 16th St, San Francisco (415-553-6888)
  </option>
  <option value="4">Coats Appraisal Services Inc - 10 main street, Conway (501-327-7301)
  </option>
  <option value="5">Schmitt Heating - 34, Woodward St, San Francisco (415-522-0966)
  </option>
  <option value="6">Larkin Plumbing - 1801, Industrial Rd, Las Vegas (702-382-2410)
  </option>
  <option value="7">Divine Moving &amp; Storage - 845, 3rd Ave, New York (212-244-4011)
  </option>
  <option value="8">Rulon T Burton &amp; Associates - 6000, Fashion Blvd, Murray (801-305-3702)
  </option>
  <option value="9">Lake Nona Dental Group - 10429, Moss Park Road, Orlando (407-277-1779)
  </option>
  <option value="10">Dentistry at Lake Nona - 10743, Narcoossee Road, Orlando (407-380-7734)
  </option>
  <option value="11">Arora Vinnie CPA - 7232, West Sand Lake Road, Orlando (407-248-9677)
  </option>
  <option value="12">Doc Thompson Plumbing - 1120, Venetian Way, Columbus (614-736-2001)
  </option>
  <option value="13">Saravana Bhavan - 1305, South Mary Avenue, Orlando (408-614-7755)
  </option>
  <option value="14">Saravana Bhavan - 1305, South Mary Avenue, Sunnyvale (408-616-7755)
  </option>
</select>
<div id="fuzzSearch">
  <div id="fuzzNameContainer">
    <span class="fuzzName"></span>
    <span class="fuzzArrow"></span>
  </div>
  <div id="fuzzDropdownContainer">
    <input type="text" value="" class="fuzzMagicBox" placeholder="search.." />
    <span class="fuzzSearchIcon"></span>
    <ul id="fuzzResults">
    </ul>
  </div>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

#fuzzSearch {
  width: 50%;
}

#fuzzNameContainer {
  height: 40px;
  padding: 4px 10px;
  border: 1px solid #999;
  box-shadow: inset 0 0 2px 0px #333;
  width: 100%;
  cursor: pointer;
  line-height: 1.9em;
}

.fuzzName {
  display: inline-block;
  width: 96%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fuzzArrow {
  width: 0;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  border-width: 7px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  top: -3px;
  -webkit-transition: all 0.1s ease-in;
  transition: all 0.1s ease-in;
}

.fuzzArrow:hover {
  border-top-color: #888;
}

.fuzzArrow.fuzzArrowUp {
  border-color: transparent transparent #333 transparent;
  top: -11px;
}

#fuzzDropdownContainer {
  display: none;
  width: 100%;
  margin: 0 0 5px 0;
  border: 1px solid #999;
  padding: 12px 4px 4px;
  position: relative;
}

.fuzzMagicBox {
  width: 99%;
  height: 26px;
  margin: 0 auto;
}

.fuzzSearchIcon {
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
  background: transparent;
  top: -20px;
  left: 95%;
}

.fuzzSearchIcon:before,
.fuzzSearchIcon:after {
  content: '';
  display: block;
  position: absolute;
  right: 5px;
}

.fuzzSearchIcon:before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #aaa;
}

.fuzzSearchIcon:after {
  height: 7px;
  border-right: 1px solid #aaa;
  top: 9px;
  -webkit-transform: rotate(-32deg);
  -ms-transform: rotate(-32deg);
}

#fuzzResults {
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#fuzzResults li {
  list-style: none;
  margin-bottom: 10px;
  padding: 10px;
  transition: all 0.1s ease-out;
}

#fuzzResults li:hover,
#fuzzResults li.selected {
  color: #fff;
  background: #1251a4;
}

.highlight {
  color: red;
}
              
            
!

JS

              
                $('#fuzzOptionsList').fuzzyDropdown({
  mainContainer: '#fuzzSearch',
  arrowUpClass: 'fuzzArrowUp',
  selectedClass: 'selected',
  enableBrowserDefaultScroll: true
});
              
            
!
999px

Console