I would like to know how do I remove or hide the default arrow on my select dropdown.
I do not wish to use javascript/jquery for this, and I dont mind how it degrades in earlier versions of IE either, but I dont know why its not being hidden/removed at all.
FYI: I am using an online source for the custom arrow for example purposes here.
Any help will be appreciated. thanks.
/* -- Styled Selects - wrapped due to FF appearance bug & MSIE -- */
.styled_select {
display: block;
position: relative;
margin: 0;
padding: 0;
width: 200px;
height: auto;
border: 1px solid #ccc;
overflow: hidden;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-o-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-o-box-shadow: none;
-khtml-box-shadow: none;
box-shadow: none;
}
.styled_select.match-width {
display: inline-block;
*display: inline;
zoom: 1;
}
.styled_select {} .styled_select select {
position: relative;
display: block;
margin: 0;
padding: 9px 32px 9px 12px;
white-space: nowrap;
width: 100%;
font-size: 13px;
font-size: 1.3rem;
color: #666666;
font-family: 'Open Sans', sans-serif;
font-weight: 600;
font-style: normal;
border: none;
background: transparent;
cursor: pointer;
-moz-appearance: window;
-webkit-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
outline: none;
z-index: 2;
}
.styled_select select::-ms-expand {
display: none;
z-index: -999999;
}
.styled_select:hover {
border: 1px solid #00adf1;
}
.styled_select:after {
position: absolute;
top: 0;
right: 0;
width: 32px;
height: 100%;
speak: none;
content: '';
z-index: 1;
}
.styled_select:before {
position: absolute;
top: 50%;
right: 20px;
width: 20px;
height: 20px;
margin: -8px 0 0 -4px;
background: url(https://cdn0.iconfinder.com/data/icons/slim-square-icons-basics/100/basics-08-128.png) no-repeat 50% 60%;
speak: none;
content: '';
}
.ie8 .styled_select select,
.ie9 .styled_select select {
padding-right: 12px;
}
.ie8 .styled_select:after,
.ie9 .styled_select:after,
.ie8 .styled_select:before,
.ie9 .styled_select:before {
display: none;
}
<span class="styled_select">
<select>
<option value="">Select One</option>
<option value="1">Option 01</option>
<option value="2">Option 02</option>
</select>
</span>