10
I got a problem here at IE.
I am styling the select component of the form, hiding the arrow that comes by default from the browser to load an image in its place.
In FF and Chrome was quiet, but in IE is appearing the default arrow of the browser, I gave a search and tests on all possible variants of the same but said whose continues to appear, even using:
select::-ms-expand {
display: none;
}
Code:
form select{
background: transparent;
border: 1px solid #DDDDDD;
border-radius: 5px 0 0 5px;
box-shadow: 1px 0 2px rgba(0, 0, 0, 0.2) inset;
color: #999;
font-size: 14px;
height: 45px;
padding: 0 5px;
width: 250px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
background: url("http://www.iconesbr.net/iconesbr/2009/06/8383/8383_32x32.png") 100% / 17% no-repeat;
text-transform: uppercase;
select::-ms-expand { display: none; }/* Remove seta padrão do IE*/
}
select::-ms-expand {
display: none;
}
<form method="post" action="">
<label>
<select name="depto" id="selectDepto">
<option selected value=""> Busca por departamento</option>
<option value="administração">Administração</option>
<option value="comercial">Comercial</option>
<option value="consultoria">Consultoria</option>
<option value="controle de qualidade">Qualidade</option>
<option value="desenvolvimento">Desenvolvimento</option>
<option value="diretoria">Diretoria</option>
<option value="endomarketing">EndoMarketing</option>
<option value="financeiro">Financeiro</option>
<option value="implantação">Implantação</option>
<option value="marketing">Marketing</option>
<option value="pré implantação">Pré-Implantação</option>
<option value="recursos humanos">Recursos Humanos</option>
<option value="tecnologia">Tecnologia</option>
<option value="treinamento">Treinamento</option>
</select>
</label>
</form>
How can I fix this?
I tested on 11 and did not show the arrow, the image ended up "hiding". Anyway, related: http://answall.com/q/46034/4808
– Renan Gomes
There is a gambit that can be made with
overflow-hidden
. Only I don’t remember now :(– Wallace Maxters
Related question in SOEN. http://stackoverflow.com/questions/20163079/remove-select-arrow-on-ie
– Wallace Maxters
@Renan was testing on IE10 with this was the image of the blue arrow I want to display in select behind the default IE arrow. =/
– cristofersousa
@Kor saw the link of the question I posted? Any of the solutions help?
– Renan Gomes
I think it was solved with the updates of IE, because I am in your fiddle and does not appear the arrow for me (version 11.0.9600.18617)
– Dmyan