W3C home > Mailing lists > Public > www-style@w3.org > May 2004

@media in style attribute

From: Philip Hoyt <phoyt@macbox.com>
Date: Wed, 19 May 2004 13:59:49 -0700
To: www-style@w3.org
Message-ID: <web-36546613@MauiMail.com>

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:13 UTC