In Chrome and other browsers my dropdown looks fine:
However, in Firefox it has unwanted dotted lines:
I have successfully removed the unwanted Firefox dotted lines for buttons and input elements with these CSS statements:
button::-moz-focus-inner { border: 0; }
input::-moz-focus-inner { border: 0; }
so I thought these would work for the select/option elements, but they don't:
select::-moz-focus-inner { border: 0; }
option::-moz-focus-inner { border: 0; }
How can I remove the dotted lines in this dropdown so that it appears as in Chrome and other browsers?
Addendum
These don't work either:
select::-moz-focus-inner { border: 0; outline: 0 }
option::-moz-focus-inner { border: 0; outline: 0 }
nor these:
select { outline: 0; }
option { outline: 0; }
nor these:
select { outline: none; }
option { outline: none; }
try using
outline: 0,
works for buttons