-2

I have a select box as below:

enter image description here

However, I want to change the design to this:

enter image description here

Anyone know a technique to do this in css? Or is it even possible? Thank you in advance.

CloudSeph
  • 863
  • 4
  • 15
  • 36
  • This is not an on topic question as it stands now. Please add effort and code. But first google "style select css" then you will find things like this https://stackoverflow.com/questions/1895476/how-to-style-a-select-dropdown-with-css-only-without-javascript – mplungjan Jul 30 '17 at 16:23
  • Possible duplicate of [How to style a – Rajendran Nadar Jul 30 '17 at 17:18

1 Answers1

1

HTML:

<select  id="my_selection">
</select>

CSS:

#my_selection {
    -webkit-appearance: none; 
   -moz-appearance: none;
   appearance: none;       /* remove default arrow */
   background-image: url(../img/drop-down.png);  /* add custom arrow */
   background-repeat: no-repeat;
   background-position:right center;
}

Use the following code to accomplish what you want.

CloudSeph
  • 863
  • 4
  • 15
  • 36