WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Hiding Legends


From: Dean Hamack
Date: Oct 15, 2008 3:50PM

On 10/15/08 2:22 PM, "Jared Smith" < <EMAIL REMOVED> > wrote:

> Why are you hiding the legend anyway? If the legend is hidden and the
> content is still visually accessible, then why would it not also make
> sense without the legend for a screen reader user? I'm struggling to
> think of a case where providing a legend to screen reader users, but
> hiding it from sighted users would be useful.

Getting legends to style properly is a nightmare. In the past I've spent
hours going back and forth trying to get them to look like comps on all
browsers and it never works. So I figure it's easier to just hide them, and
use something else (span, image, etc.) to create the desired visual effect.
That makes the designers happy, while still keeping the forms accessible.

Do we know it the negative text indent trick works with all screenreaders?
How about "visibility: hidden"?