JSFiddle - React, Tailwind, and code Playground
by peppelorum
HTML
<div class="wrapper">
<div class="styled-select">
<span class="arrow"></span>
<select>
<option>One</option>
<option>Two</option>
</select>
</div>
</div>
CSS
.wrapper {
width: 50%;
}
.styled-select {
position: relative;
height: 21px;
line-height: 21px;
/*overflow: hidden;*/
border: 1px solid #27292c;
border-radius: 3px;
background: #494849;
box-shadow:inset 0 0 1px #393939;
-moz-box-shadow:inset 0 0 1px #393939;
-webkit-box-shadow:inset 0 01px #393939;
color: #fff;
}
.styled-select select {
-webkit-appearance: none;
-moz-appearance: window;
background: transparent;
width: 100%;
wid\th: 112%; /* IE hack */
padding: 1px 20px 0 6px;
border: 0;
z-index: 110;
position: relative;
color: #fff;
}
.arrow {
position: absolute;
top: 6px;
right: 6px;
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 10px solid #A0A1A4;
}
.arrow:before {
content: '';
position: absolute;
top: -15px;
left: -12px;
height: 19px;
border-left: 1px solid #27292C;
}