Last active
January 3, 2016 04:49
-
-
Save oliverbenns/8411881 to your computer and use it in GitHub Desktop.
Select Element Styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dropdown { | |
border: 1px solid black; | |
border-radius: 3px; | |
overflow: hidden; | |
background: white url("img/icon-arrow.png") no-repeat right 50%; | |
} | |
.dropdown select { | |
padding: 6px 12px; | |
border: none; | |
box-shadow: none; | |
background: transparent; | |
background-image: none; | |
-webkit-appearance: none; | |
appearance: none; | |
text-indent: 0.01px; | |
text-overflow: ''; | |
} | |
.dropdown select:focus { | |
outline: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="dropdown"> | |
<select> | |
<option>Choice 1</option> | |
<option>Choice 2</option> | |
<option>Choice 3</option> | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment