@media in style attribute

I've been trying to find a way to specify media type for a css rule in
the style attribute of xhtml. Something like
<img src="printLogo.gif" style="@media print {display: block} @media
screen {display:none}" /> but this doesn't seem to be part of any
specfication, and at least that syntax doesn't work in any modern
browsers. Seems like it might be useful functionality.

Received on Wednesday, 19 May 2004 17:52:52 UTC