I am trying, and failing, to style the boostrap-select widget. I have tried the following code but it does not change the background and text color in the selectpicker select box:
<select id="what" class="wia-filter-value selectpicker show-tick">
<option selected>All</option>
<option>Events</option>
<option>Man Made</option>
<option>Nature</option>
</select>
My CSS looks like this:
select {
width: 200px;
height: 30px;
background-color: #141414 !important;
border-style: solid;
border-left-width: 3px;
border-left-color: #00DDDD;
border-top: none;
border-bottom: none;
border-right: none;
color: white;
font-size: 18px;
font-weight: 200;
padding-left: 6px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.selectpicker{
width: 200px;
height: 30px;
background-color: #141414 !important;
border-style: solid;
border-left-width: 3px;
border-left-color: #00DDDD;
border-top: none;
border-bottom: none;
border-right: none;
color: white;
font-size: 18px;
font-weight: 200;
padding-left: 6px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select::-ms-expand { /* for IE 11 */
display: none;
}
.wia-filter-value {
width: 200px;
height: 30px;
background-color: #141414 !important;
border-style: solid;
border-left-width: 3px;
border-left-color: #00DDDD;
border-top: none;
border-bottom: none;
border-right: none;
color: white;
font-size: 18px;
font-weight: 200;
padding-left: 6px;
}
This CSS successfully applies the left border color but does not apply the background color or the text color.
NOTE: The solution show in stackoverflow at enter link description here is for the standard Boostrap select. I am using the selectpicker widget from https://silviomoreto.github.io/bootstrap-select. That solution does not appear to work for selectpicker, or at least I cannot get it to work.
