Is there a way to remove the border highlight (outline) of the <select>
element after it is focused? I have successfully removed it for other elements like <input>
, <textarea>
, and <button>
, but I'm struggling with the <select>
tag.
Below is the CSS code I've used. Although I included select:focus
, it doesn't seem to work as expected:
input:focus,
select:focus,
option:focus,
textarea:focus,
button:focus {
outline: none;
}
Here is the code snippet:
<!-- CSS code -->
<!-- HTML code -->