PDA

View Full Version : ON:CLICK CSS border on link that just wont go away!



vlad_i
Mar 30th, 2009, 05:17 PM
Helllo gents,

Please see the image,
http://fusionsyndicate.com/demo/Picture_4.png

the little dotted border only appears when the link is clicked on... I did a:active{border:none !important}
but now out of ideas.
...help!
:eek:

Excavator
Mar 30th, 2009, 05:25 PM
Hello vlad-i,
Try outline:none;

RomanTaylor
Mar 31st, 2009, 01:02 AM
Thanks for this thread, you reminded me to fix my web site (the same thing).

I just simply added this 2 rules in my main_css stylesheet and its working just fine, not outlines what so ever.



a:link, a:active, a:hover, a:visited {
outline: none;
}

Excavator
Mar 31st, 2009, 01:37 AM
I put this at the top of my CSS files now -

* {
margin: 0;
padding: 0;
outline: none;
border: none;
}

Bill Posters
Mar 31st, 2009, 01:38 AM
Bear in mind that sighted keyboard users and/or those using certain assistive technology will no longer be able to see which item on the page is selected, making navigating around a site considerably more difficult, if not impossible. (It's an accessibility/usability thang.)

If you're going to remove the outline, use the CSS :focus pseudo-class to replace it with some other, more agreeable means of showing users which element on the page is the selected.
(Also, bear in mind that you ideally shouldn't rely on colour alone to differentiate selected elements from those around it, also on the grounds of good accessibility/usability.)

vlad_i
Mar 31st, 2009, 05:34 AM
Thank you very much guys,
V