HTML: hover css menu and accessibility

I have a question.

I created a css menu (no javascript required). It depends on: hover to show or hide UL elements within A.

using visibility: hidden; and visibility: visible;

So far so good, until I try to use only the keyboard.

Now, to be accessible, I need to be able to navigate only with the keyboard.

So, I also added a: focus to the classes that control visibilty.

This, however, did not correct the menu and remains closed.

Does anyone know how to do this to make my site accessible?

Thanks in advance.

change jsfiddle

The biggest problem is how to achieve this so that they can contribute to the links below. I can do this only for the mouse, not just for the keyboard.

- , ?!

+5
4

Pure css based: hover menues , . , , . , .

javascript , , , ( ). , , JavaScript ( javascript onLoad).

1: , , java script, , hover focus.

2: javascript css-, : hover, . . javascript, , .. , javascript.

(, - ), ( javascript), , , , javascript, javascript. ( ) , , offside , javascript href . , , .

+4

, , - , , a. a, a , ( /).

, ; , .


OP ( ):

... , , ?

, , JavaScript. CSS ( , .subnav a:focus parent(li) siblings ).

+1

, , . , , .

a:link /*for unvisited links, mutually exclusive to :visit*/
a:visted /*for visited links, mutually exclusive to :link*/
a:focus /*for focused elements such as selection by accesskey using keyboard*/
a:hover /*for elements in the state of being hovered upon by mouse*/
a:active /*for elements that are in the state of being activiated*/

, , . , , - . HTML CSS .

Sitepoint

0

CSS-.
Chrome 11, Firefox 2, Opera 9.5, Safari 4, IE8 IE9.
, :active ( :focus) ( ) IE7.

0

All Articles