Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML CSS Change Color of SELECT ARROW [duplicate]

Tags:

html

css

I'm looking to change the color of the SELECT arrow to blue.

Is there a simple way to do this?

SELECT BOX

like image 200
Derek Avatar asked Aug 10 '16 10:08

Derek


2 Answers

.select_box{
  width: 200px;
  overflow: hidden;
  border: 1px solid #000;
  position: relative;
  padding: 10px 0;
}
.select_box:after{
  width: 0; 
  height: 0; 
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #f00;
  position: absolute;
  top: 40%;
  right: 5px;
  content: "";
  z-index: 98;
 }
.select_box select{
  width: 220px;
  border: 0;
  position: relative;
  z-index: 99;
  background: none;
}
<div class="select_box">
 <select>
   <option>Test This Select</option>
   <option>Test This Select</option>
 </select>
</div>
like image 128
Yasir Khan Avatar answered Oct 03 '22 04:10

Yasir Khan


try this code segment,

<div class="customerStyle">
   <select class="selectCustomer">
       <option value="Jone">Jone</option>
       <option value="Tom">Tom</option>
   </select>
</div>


.customerStyle select {
  background: transparent;
  width: 170px;
  padding: 5px;
  border: 0;
  border-radius: 0;
  height: 35px;
}

.customerStyle {
   background: url("images/arrow.png") no-repeat right #ffffff;
   border: 1px solid #000;
   width: 150px;
   height: 35px;
   overflow: hidden;
 }

Add blue color arrow image for "images/arrow.png"

like image 41
Kushan Avatar answered Oct 03 '22 02:10

Kushan