By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Removing borders around active links

P: n/a
I've tried everything, looked through all the faqs and everything,
looking for a way to remove the 1px dotted border from around active
links... tried

a:active { border: 0px solid black; }

but, to no avail...
does anyone know how to get rid of the borders?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
vb**********@Yahoo.com (vbAlex) writes:
I've tried everything, looked through all the faqs and everything,
looking for a way to remove the 1px dotted border from around active
links... tried

a:active { border: 0px solid black; }

but, to no avail...
does anyone know how to get rid of the borders?


It is a browser thing. Not all browsers has the dotted border, and you
should be carefull not to remove it from people who actually need it.

What you see is not derived from being "active", but from being
"focus"'ed. The traditional solution is to add
onfocus="this.blur()"
to the elements. However, that completely breaks keyboard navigation,
so you might not want to do that.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a

"vbAlex" <vb**********@Yahoo.com> schreef in bericht
news:83**************************@posting.google.c om...
I've tried everything, looked through all the faqs and everything,
looking for a way to remove the 1px dotted border from around active
links... tried

a:active { border: 0px solid black; }

but, to no avail...
does anyone know how to get rid of the borders?


Hi,

Since IE5.5 there is the hidefocus attribute. AFAIK it is a MS thing
only.

http://msdn.microsoft.com/workshop/a.../hidefocus.asp

Fred

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.