/    Sign up×
Community /Pin to ProfileBookmark

There was some talk of skipnavs…. here’s what I normally use:

<div class=”skipnav”>
<a href=”#skipbgprimarynav”>
<img src=”images/spacer.gif” alt=”Skip primary navigation.” width=”1″ height=”1″ border=”0″>
</a>
</div>

<ul class=”leftnav”>
<li><a href=”#”>Link1</a></li>
<li><a href=”#”>Link2</a></li>
</ul>

<div class=”skipnav”>
<a name=”skipbgsecondarynav”><img src=”images/spacer.gif” alt=”” width=”1″ height=”1″ border=”0″></a>
</div>

.skipnav {
width: 1px;
height: 1px;
position: absolute;
visibility: hidden;
}

There’s debate over all this stuff, of course, so this is just my current pref. And this is the example to skip from where a set of links begins, to where it ends. You can skip sections or whatever. Whatever is repeated on a page, folks using screen readers don’t want to have to wade through it over and over.

to post a comment
CSS

11 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 12.2004 — [font=arial]It might be a good idea to use the [b]title[/b] attribute on your links. ? [/font]
Copy linkTweet thisAlerts:
@VladdyApr 13.2004 — Have your content before navigation in the normal page flow.
Copy linkTweet thisAlerts:
@JonaApr 13.2004 — [i]Originally posted by Vladdy [/i]

[B]Have your content before navigation in the normal page flow. [/B][/QUOTE]


[font=arial]About, and I'm just guessing, 85% of the time I do just that, but sometimes (rarely) there's two sets of navigation, or something, and I style them differently; so in the event that you [b]do[/b] have the navigation first, for some reason, there is the option of skipping navigation. So I can see where TimeBandit here is coming from. ? [/font]
Copy linkTweet thisAlerts:
@TimeBanditauthorApr 13.2004 — I'm often working on projects that have header nav, left nav, footer nav. I don't think I'm talented enough to put all that nav after the content and then make it display well visually - sometimes I am prohibited from using position: absolute.

In addition, we're not only thinking about people using screen readers, but people who have style sheets turned off or are using their own. So we prefer to have topnav and usually leftnav before content, footer after.
Copy linkTweet thisAlerts:
@VladdyApr 13.2004 — Then it should be one line and no spacer gifs:

<a href"#content" style="display:none">Skip Navigation</a>
Copy linkTweet thisAlerts:
@TimeBanditauthorApr 14.2004 — The text often takes up too much room to be used as a direct link, as you have illustrated. We're still debating whether we should just put the darn link on the screen or not, like you're saying, but we're not debating very much. The spacer.gif is smaller. We can hide it more easily from visual users.
Copy linkTweet thisAlerts:
@JonaApr 14.2004 — [i]Originally posted by TimeBandit [/i]

[B]...sometimes I am prohibited from using position: absolute...[/B][/QUOTE]


[font=arial]The WCAG 1.0 says that you should avoid using absolute positioning if at all possible. Try floating objects instead. ? [/font]
Copy linkTweet thisAlerts:
@TimeBanditauthorApr 14.2004 — I'm not really using the objects i am positioning. Just trying to take them out of the flow. Some would argue I shouldn't float them because they are not intended to float. They are intended to be "hidden", taken out of the flow, and only available to assistive technologies in the most unobtrusive manner to the visual layout as I can muster. And they're available if someone has styles off.
Copy linkTweet thisAlerts:
@JonaApr 14.2004 — [font=arial]I must've missed something; if you weren't talking about how you visually layout your page, then ignore my comment. :rolleyes: [/font]
Copy linkTweet thisAlerts:
@VladdyApr 14.2004 — [i]Originally posted by TimeBandit [/i]

[B]The text often takes up too much room to be used as a direct link, as you have illustrated. We're still debating whether we should just put the darn link on the screen or not, like you're saying, but we're not debating very much. The spacer.gif is smaller. We can hide it more easily from visual users. [/B][/QUOTE]

display:none does not hide it good enough for you ? ?
Copy linkTweet thisAlerts:
@TimeBanditauthorApr 14.2004 — When we hammered out this technique, you are correct that "display: none" was not good enough for us. Our research showed that some assitive technologies, like JAWS, supposedly did not "read" an element that was set to none, but hidden was OK. We may revisit it now that we actually use JAWS to review 508 compliant sites, because the newest version is different.
×

Success!

Help @TimeBandit spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...