Skip to content

Instantly share code, notes, and snippets.

@thinkgarden
Created December 1, 2018 15:30
Show Gist options
  • Save thinkgarden/d35417d689c16d97115b1b3b26b0b4de to your computer and use it in GitHub Desktop.
Save thinkgarden/d35417d689c16d97115b1b3b26b0b4de to your computer and use it in GitHub Desktop.
[css-select]
<div class="select-style">
  <select>
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </select>
</div>
.select-style {
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: 120px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;

    background: #fff url("http://www.scottgood.com/jsg/blog.nsf/images/arrowdown.gif") no-repeat 90% 50%;
}

.select-style select {
    padding: 5px 8px;
    width: 130%;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.select-style select:focus {
    outline: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment