Created
December 6, 2013 15:29
-
-
Save nelsonic/7826519 to your computer and use it in GitHub Desktop.
Styled Select Box
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
<select class="styled-select"> | |
<option class="red">Cooperation </option> | |
<option class="blue">Competence </option> | |
</select> | |
</p> | |
<style> | |
.styled-select { | |
font-size: 1.4em; | |
color: #DCDCDC; | |
padding-left: 50px; | |
width: 200px; | |
height: 34px; | |
overflow: hidden; | |
background: url(http://nelsonic.s3.amazonaws.com/enlarge-image/img/select-icon.png) no-repeat left white; | |
background-size: 34px 34px; | |
border: 1px solid #ccc; | |
-webkit-appearance: none; | |
border-radius: 0px; | |
} | |
.styled-select:active { | |
background: url(http://nelsonic.s3.amazonaws.com/enlarge-image/img/select-icon-active.png) no-repeat left white; | |
background-size: 34px 34px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment