There's actually a good reason for this difference. (I can't find the reference right now, but I think it's in Zeldman's Designing With Web Standards.) Some screenreaders (Jaws?) observe the display:none CSS rule, even though it's a visual thing -- therefore, the rule Jeremy cited won't be accessed in that context, whereas Russ' rule will.

Neither one is wrong, it's just important to know to whom you're supplying the message...

Nate


.: Nate Cook : 773 405 4073 : [EMAIL PROTECTED] : www.natecook.com :.


On Mar 17, 2004, at 8:17 AM, Jeremy Flint wrote:

you can also use

.hide {
display: none
}

<div class="hide">Message to non-stylesheet browsers</div>

russ weakley wrote:

These guys use the following CSS rule:

.hide {
   height: 0;
   width: 0;
   overflow: hidden;
   position: absolute;
   }

HTML:
<div class="hide">
<p>
If you are reading this on a mobile device browser or a text browser, you
can safely <a href="#maincontent">
skip to the content</a>.
...




Russ

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to