WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: use of CSS z-index property to hide content

for

From: Mike Moore
Date: Oct 12, 2004 9:07AM


The only drawbacks to this method that I have seen are a few mentions on
this discussion list that these methods may result in lower search engine
ratings. This seems to be more prevalent with methods that make the label
the same color as the background, move it off of the page, or reduce the
size of the label to a single pixel. Search engines don't like hidden
content because it has been used to attempt to manipulate search engines. I
haven't seen or tested anything that uses layered divs - sounds like a good
idea. Personally I am still using the title attribute on fields where I
cannot use a label. The classic examples are multiple text boxes for
telephone number entry or in the US for social security number entry. To
get around the problems on telephone numbers I now just use a single box and
then support it with backend processing to get the number into the format
that I desire. Of course that doesn't help if they don't provide all of the
numbers.

Mike