Created
January 13, 2016 16:50
-
-
Save pablocattaneo/fa8bea65761343f74c2e to your computer and use it in GitHub Desktop.
Custom select
more info: http://bavotasan.com/2011/style-select-box-using-only-css/
http://stackoverflow.com/questions/8430279/how-to-style-the-option-with-only-css
This file contains hidden or 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
.styled-select{ | |
width: 100%; | |
overflow: hidden; | |
background: url('images/la-plaza-de-tu-mascota/arrow-dropdown.png') no-repeat right transparent; | |
border: 1px solid #ccc; | |
} | |
.styled-select select { | |
background: transparent; | |
width: 100%; | |
border: 0; | |
border-radius: 0; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
} | |
/* for IE 11 */ | |
.styled-select select::-ms-expand { | |
display: none; | |
} |
This file contains hidden or 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="styled-select"> | |
<select> | |
<option>Here is the first option</option> | |
<option>The second option</option> | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment