Forum Moderators: not2easy
HTML
<div id="skipnav"><a href="#start">skip nav</a></div>
<menu>
-
-
-
</menu>
<a name="start"></a>
CSS
#skipnav{display: none;}
--
is this div ever displayed? I have the css set to screen but is this the best way to do things or is this like adding a ramp to the front of a building then covering it in harry potter's invisibilty cloak so it nevers gets used?
at an accessibility seminar i was at the other day, a speaker from the RNIB advocated making the skip nav link visible, but didnt go into reasons.
i tend to use a small arrow image, as part of the breadcrumb trial, as the link.
funny, they used the 'like adding a ramp' analogy a lot too
ben
but it is ultimately the screenreader software that is at fault.. they shouldn't be using media="screen". In their defence it's not their fault either as standards are only emerging, we know that not all the medias are properly supported yet and for the software companies to change will probably be expensive, added to that a person can often become attached to their "browser" and not upgrade as fast as we'd like ;)
E.g. the use of skip links has been advocated for handhelds too as in even a menu that is not very "long" on screen or is horizontally displayed in a wide screen browser... can be very long on a mobile phone.
While use of a "visible" skip navigation link would be next to useless at the start of a horizontal menu on screen... it would keep those few screenreaders that incorrectly don't read display: none;, happy
Alternatively...a 1px x 1px div, or a link positioned absolutely off the screen would keep everyone happy, well almost then there's the SE's... can you imagine the talk of spamming we would then get just for trying to keep the RNIB and handhelds happy :(
it's a no win situation which is possibly why the RNIB person didn't elaborate. They are up against "browser" support issues the same as we are and it probably depends whether your site is commercial or an example of 100% accessibility which method suits your site best
*sigh* Oh for a perfect world...
Suzy
I tend now to put the link in it's own <div> and absolute position it off screen or behind something else. It's annoying but theres not many other ways around it.
It doesn't take up much room and it uses the same the same style as the "back to the top" links further down the page. It sort of looks quite natural sat there, so I've ceased to worry about it.