WebAIM - Web Accessibility In Mind

E-mail List Archives

media types; css

for

From: pixels 256
Date: Apr 21, 2009 3:55PM


I have a couple of quesitons.

(1) Is “all except print” a viable value for the media attribute in *<link
rel="stylesheet" type="text/css" media="all except print" href="xprint.css"
/>*?

(2) I want to toggle between a cool background image (say, linewave.gif)
for the screen and some (replacement) words in print.

For the XHTML, I have -

<div id="logo">

<img src="graphics/blank.gif" height="72px" alt="Hello1" />

</div>

<div id="title">

<h1>Hello2</h1>

</div>

For its CSS, I set #title {display:none} for screen.css and #logo
{display:none}
for print.css because I don’t want the redundancy of having both “Hello1”
and “Hello2” read by a screenreader. Can those who use a screenreader (or
visitors who choose to have images turned off) be able to view the
alternative text in the <img> tag on their screen?

Thank you,

so much!