I want to customize the button (down arrow) located in the right corner of the select box. The HTML code is as follows:
<div class="buscaSelect">
<select name="oper">
<option value="value1">Value 1</option>
<option value="value2">Value 2</option>
</select>
</div>
This is the corresponding CSS:
.buscaSelect {
display: inline-block;
margin: 18px 0px 0px 0px;
width: 120px;
height: 27px;
border-radius: 0px;
overflow: hidden;
background: white url("btnSelect.png") no-repeat right center;
}
.buscaSelect select {
padding: 4px;
width: 100%;
border: none;
box-shadow: none;
background: transparent;
background-image: none;
-webkit-appearance: none;
}
While Safari works perfectly by replacing the default button with "btnSelect.png", Firefox shows the default button on top of my custom one, resulting in a flawed appearance due to size discrepancies between the two buttons.
Is there a way to disable the default Firefox button and only display mine?