Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove outline from select dropdown (Chrome on Windows 7)

I am trying to remove a blue outline from the option list of a select element.

As I only see this outline on Chrome on Windows 7, here is an image which points out the outline I’m talking about

Here is the code: https://jsfiddle.net/463pLc67/

I’ve tried using outline-color on the option:focus as well but it doesn’t seem to have any effect. Is there any way to get rid of this outline just using CSS?

like image 281
IeriOggiDomani Avatar asked Mar 19 '26 04:03

IeriOggiDomani


1 Answers

Because browsers handle UI aethetics differently for elements like radio buttons, checkboxes and select drop downs it's hard to overcome without using JS or complex CSS/HTML. I think Select elements are even harder than radio buttons and checkboxes, I don't think there is a reliable HTML/CSS only for this.

Sorry, I know this isn;t the answer you're looking for. You could also try 'border: 1px solid #COLOR' as a last ditch attempt.

like image 171
benji_croc Avatar answered Mar 21 '26 23:03

benji_croc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!