I have created fiddle here, which shows select and dropdown arrow.
My problem is that the arrow is created using CSS and positioned on top of select. however click on arrow doesn't open dropdown.
- is there a way to use that css as background of select like we do when we use image arrow.
- or is it possible to simulate the behavior on arrow click?
.selectClass {
-webkit-appearance: none;
-webkit-border-radius: 0;
-moz-appearance: none;
border: none;
width: 100px;
background: #EEE;
height: 30px;
font-size: 20px;
padding-left: 5px;
}
.dropDownArrow {
position: relative;
margin-left: 75px;
margin-top: -20px;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #555;
}
<select class="selectClass">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
<div class="dropDownArrow"></div>