On Fri, 2 Mar 2007, Rob Wilmshurst wrote:

> You need to set the property 'outline' on a:focus, eg a:focus { outline:
> none; }
>
> It's a CSS3 property,

It's both in the CSS 2 specification and the CSS 2.1 draft, but it has 
often been omitted from presentations of CSS, since browser support used 
to be very small. For the CSS 2.1 formulation, check
http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines

> which I believe most browsers other than IE recognize.

That seems to be the case now. For some odd reason, IE 7 didn't add 
support to this property (or set of properties, really). On the other 
hand, IE has for long had a proprietary HTML attribute, hidefocus, for the 
purpose. (It's of course clumsy, since it works on a per-element basis.)
Anyway, it's safer than some other techniques that have been used in the 
past to prevent the "selection rectangle", such as blur() in JavaScript 
(which loses the focus indication by losing the focus).

> I personally wouldn't do this though; as part of the browser's default
> behaviour the user is expecting it.  That outline indicates that the
> link is currently active.  It may be annoying when clicking, but if one
> is tabbing through the document then it's the only thing to show what's
> currently in focus.  I think it's something to be changed via custom
> stylesheets in Firefox, at the user's end of things.

I couldn't agree more.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to