Tonico Strasser wrote:
Ben Boyle wrote:
where's the keyboard support?
I think that is left to the user agent. Most of the time it will be for mouse rollovers, however if someone comes up with a holographic interface (or whatever) it will be different (such as if the user can play hopscotch on the webpage then it will be when they are over the element).
:focus is a good choice for keyboard navigation. I think it works in Moz and Safari but not in IE and Opera (not sure).
I just tested :focus in Opera 7.20-win32 on a form element, and it gave me the desired effect first time (change of background colour, change of 4 border colours).
I am going to probably use :focus in conjunction with :hover on all my forms now.
Thanks Tonico!
Just a bit of semi on-topic information: element/method msie-6.0.2800.1106 mozilla-0.7.1 opera-7.20 input:focus broken works works input:hover broken works works
(excuse the tab separated values - next time i'll publish it online and place a link).
Adam
/----------------------------------------------------------------------\
|Adam Carmichael, A+, 2xMCP (Windows 2000), Cert IV Helpdesk Admin |
|[EMAIL PROTECTED] /( _,-----,_ )\ _| |_ /,|| |
|#1 Computer Services \`/ \'/ _| |_ || |
|BSD/UNIX Network Engineer \ /o\ /o\ / | | _||_ |
\----------------------------------------------------------------------/
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
