How do you remove the dotted border/outline that is shown when selecting an item from a dropdown menu?
You can see there is a dotted border/outline shown, I want to remove this (screenshot taken in Firefox).
Trying the solution below did not remove it:
select:focus, option:focus, select::-moz-focus-inner, option::-moz-focus-inner {
outline: none;
border: none;
}
The HTML is just simply this:
<select name="order">
<option value="desc">Newest to oldest</option>
<option value="asc">Oldest to newest</option>
</select>
Select the cells from which you want to remove the dotted border. Click the Home tab. In the Font group, click on the 'Border' drop-down. In the border options that appear, click on 'No Border'
Solution 1 You can use a css style like {border:0px}... quite enough to remove the border.
Add the following to your stylesheet. -
select:-moz-focusring { color: transparent;
text-shadow: 0 0 0 #000; }
Has always worked for me, hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With