0

I want to change the arrow size and color. Is there any way doing this with css?

Here's my code;

  <div class="gecesayisi">
        <p>Nights</p>
        <select>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="4">5</option>
         </select>

  </div>

Select's background is black. In chrome I can't see the arrow but in mozilla I can by the way.

3 Answers3

2

There are ways of styling it but it's browser dependant.

Take a look at this article for more information.

.styled-select select {
   background: transparent;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   line-height: 1;
   border: 0;
   border-radius: 0;
   height: 34px;
   -moz-appearance: none;
   -webkit-appearance: none;
}

.styled-select {
   width: 240px;
   height: 34px;
   overflow: hidden;
   background: url(new_arrow.png) no-repeat right #ddd;
   border: 1px solid #ccc;
}
Paul Redmond
  • 3,276
  • 4
  • 32
  • 52
0

To add the following line to your css file.

select{font-size:xx px; background-color:#xxx}
SW4
  • 69,876
  • 20
  • 132
  • 137
Giri
  • 9
  • 2
0

This is the product I prefer: http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/

lharby
  • 3,057
  • 5
  • 24
  • 56