Forum Moderators: not2easy
There is a convoluted Javascript method to remove the dots, but it works by removing focus from the element - thus wrecking accessibility for a dubious and minor improvement in visual appearance. The answer is, therefore, no, don't do it - you would be throwing away one of the big advantages of using CSS in the first place.
Anyway, if you look in Firefox’s html.css you’ll find this rule for focused elements:
outline: 1px dotted invert; We can set our focused elements to use a different style instead:
#myelement:focus {
outline: 0;
background-color: red;
} Or something similar.
[edited by: Robin_reala at 11:28 pm (utc) on Nov. 19, 2006]
Interesting is that outlines take up no space.
outline is defined here:
[w3.org...]