Created
May 1, 2018 20:56
-
-
Save innermond/9efe9c38264d20a76c3e7899deeb9a79 to your computer and use it in GitHub Desktop.
css for styling a select with an arrow
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 { | |
background-color: white; | |
display: flex; | |
flex-wrap: nowrap; | |
align-items:center; | |
} | |
.select:after { | |
content: "\f078"; | |
font-family: 'FontAwesome'; | |
z-index: 5; | |
flex: 0 0 0; | |
margin-left: -1.5em; | |
} | |
select { | |
font-size: 1em; | |
padding: 0.5em; | |
padding-right: 2em; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
background-color: transparent; | |
width:100%; | |
cursor: pointer; | |
z-index: 6; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment