Skip to content

Instantly share code, notes, and snippets.

@innermond
Created May 1, 2018 20:56
Show Gist options
  • Save innermond/9efe9c38264d20a76c3e7899deeb9a79 to your computer and use it in GitHub Desktop.
Save innermond/9efe9c38264d20a76c3e7899deeb9a79 to your computer and use it in GitHub Desktop.
css for styling a select with an arrow
.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