I'm trying to stylize a select but i've got problems on FF and IE8. The default arrow on the right doesn't want to disappear!!
I've made a fiddle:
And here's the code:
HTML:
<div class="styled-select">
<select name="yearpicker" id="yearpicker"></select>
</div>
CSS:
body {
background: red
}
.styled-select select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
text-indent: 0.5px;
text-overflow: '';
margin-left: 10px;
margin-top: 30px;
width: 215px;
height: 39px;
padding-left:10px;
line-height: 1;
border: 0;
border-radius: 0;
color:#B4D234;
font-size: 20px;
overflow: hidden;
background: transparent;
background: url('http://www.francescoceccarelli.net/select_arrow.png') no-repeat right #fff;
}
select::-ms-expand {
display: none;
}
and JS:
for (i = new Date().getFullYear(); i > 2000; i--)
{
$('#yearpicker').append($('<option />').val(i).html("Year " + i));
}
Can you give some suggestion, please?
Thx, Francesco