Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely?
views:
1533answers:
2It's easier to use the CSS focus attribute, but this will work in older browsers.
Ross
2008-10-07 17:31:15
+11
A:
Do you mean the dotted outline of a target?
Try:
:focus {
outline: 0;
}
This would remove all focus outlines. IT's essentially the same as onclick in JavaScript terms. You might prefer to apply this to a:focus
.
Ross
2008-10-07 17:30:31
As pointed out in the answer to the question linked to below: "the outline is essential for keyboard-navigators as it designates where your selection is and, so, gives a hint to where your next 'tab' might go. Thus, it's inadvisable to remove this dotted-line selection."
Sam Hasler
2008-10-14 22:57:52
I agree, I often add my own focus effects. An opacity decrease for images and a background/color change for navigation items for example.
Ross
2008-10-19 20:52:57