Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get rid of <select> element outline in Firefox?

Tags:

html

css

So here's a fiddle demonstrating the problem: http://jsfiddle.net/CVTrb/1/, click and select on any option, and then you should see a thin gray line appear that doesn't exactly sit within the <select> element.

Here's an image demonstrating this:

Here's an image demonstrating this:

like image 294
Louis93 Avatar asked Mar 28 '14 16:03

Louis93


People also ask

How do I get rid of the box arrow background in Firefox?

Try this way: -webkit-appearance: button; -moz-appearance: button; Then, you can use a different image as background and place it: background-image: url(images/select-arrow.


2 Answers

Credit to this post here: https://stackoverflow.com/a/18853002/1261316

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
like image 96
Dryden Long Avatar answered Oct 23 '22 10:10

Dryden Long


Add outline: none; to .form-dropdown

like image 40
j08691 Avatar answered Oct 23 '22 09:10

j08691