I want to make the style of drop-down list same on different browser, first I have remove the default style of arrow
select {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
}
select::-ms-expand {
display: none;
}
.Default{
padding:0px 0px;
background: url(http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png) no-repeat right center;
}
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<div class="col-lg-12">
Method 1:
<div >
<select class=" Default">
<option value="1">Test long text ...text text text</option>
<option value="2">Test 2</option>
<option value="3">Test 3</option>
</select>
</div>
</div>
<br/>
<div class="col-lg-6">
Method 2
<div class="input-group">
<select class="form-control">
<option value="1">Test long text ...text text text</option>
<option value="2">Test 2</option>
<option value="3">Test 3</option>
</select>
<span class="input-group-btn">
<button class="btn btn-default" type="button">▼</button>
</span>
</div><!-- /input-group -->
</div>
my questions,
In method 1 the text become over the background , can the text become behind the background without using padding? , I don't want use padding because I want right and left padding same for languages RTL , LTR propose .
In method 2 , can I make JavaScript that when click on button the list drop down?
it is easy to change the select behavior on browser?
on IE , have gray hovering , blue select
on Google chrome, have blue hovering and select