0

Simple Select Menu with blue background for options

What is the easiest way to change this default blue background when you hover over a select menu option? Can it be done with just CSS?

I've tried using :hover and :active selectors but it hasn't worked

Please help!

Louay Madrid
  • 41
  • 1
  • 5
  • it's difficult to change style of option tag, it's easier to just make your own drop down list – Chris Li Sep 23 '18 at 18:24
  • @ChrisLi thank you, the thing is I don't host this dropdown, it's provided by a third party currency converter app and I can only change its styling via CSS. So there is absolutely no way to change it? It's the last tiny detail I need to get right and the website is good to go :p – Louay Madrid Sep 23 '18 at 19:01
  • heres a post on styling option tag https://stackoverflow.com/questions/5887133/how-to-style-a-select-tags-option-element – Chris Li Sep 23 '18 at 19:06

1 Answers1

0

This behaviour is bound to :focus

select:focus {
   outline: 5px dotted green;
}

Here's the link to fiddle: https://jsfiddle.net/sfuv1k09/3/

Lukáš Gibo Vaic
  • 3,960
  • 1
  • 18
  • 30