- From: Rijk van Geijtenbeek <rijk@opera.com>
- Date: Wed, 01 Aug 2007 13:56:10 +0200
- To: "WWW Style" <www-style@w3.org>
> Nikodem wrote: >> >> I think that [X]HTML image tag <img src="..." /> is OK for >> content-related images (photos for articles etc.), but not for >> navigation (<ul><li><a href="mailto:a@b.c"><img src="mail.png" >> alt="Mail" /></a></li></ul>), where it is going to be a little >> presentational. It could be made so: >> >> <style type="text/css"> >> ul li#mail{replace-by-image:url("mail.png");} >> @media print{ul li#mail{replace-by-image:none;}} >> </style> >> >> <ul><li id="mail"><a href="mailto:a@b.c">Mail</a></li></ul> Isn't this already covered by the proposed CSS3 Generated and Replaced Content Module WD? http://www.w3.org/TR/2003/WD-css3-content-20030514/#content <style type="text/css"> ul li#mail {content: url("mail.png");} @media print { ul li#mail { content: normal;} } </style> -- Rijk van Geijtenbeek Opera Software ASA Tweak: http://my.opera.com/Rijk/blog/
Received on Wednesday, 1 August 2007 11:56:13 UTC