I'm cracking my head to try to get the select from my site to agree with my css. In fact, only in Mozilla that the saying whose does not look the desired.
I was looking for some jQuery to do editing these elements, but the problem is that on my site they will have 2 different-looking selects, ie if I use a jQuery ready it will leave both selects looking the same. For this, I will have to use 2 jQuerys, which I do not want and I think it will get heavy.
Is there any jquery command to delete the "little set" of select? Only the one that is spoiling the look in Mozilla.
I tried creating a div with overflow "hidden" and leaving the select larger in width, so it would hide the arrow, but the width of <option>
also widens. I also tried editing the size of <option>
but did not accept this type of customization.
Demo code:
<select>
<option>um</option>
<option>dois</option>
</select>
select {
-webkit-appearance:none;
-moz-appearance:none;
-o-appearance:none;
appearance:none;
text-indent: 0.01px;
background: transparent;
width:185px;
height:22px;
font-size:18px;
border:0;
color:#CC9;
outline: none
}
option {
font-size:13px;
border:0;
background-color:#1063A0;
outline: none;
width:100px; /* queria editar a largura do option tbm */
}
Preview: link