[css-d] Can media values be used as a part of a selector ?

2010-04-07 Thread Philip TAYLOR
Finding myself writing (this morning) : style type=text/css media=print BODY {font-family: Arial Narrow, sans-serif} /style style type=text/css media=screen BODY {font-family: Trebuchet MS, sans-serif} /style I felt the urge to

Re: [css-d] Can media values be used as a part of a selector ?

2010-04-07 Thread Tim Snadden
On 7/04/2010, at 10:11 PM, Philip TAYLOR wrote: Finding myself writing (this morning) : style type=text/css media=print BODY {font-family: Arial Narrow, sans-serif} /style style type=text/css media=screen BODY {font-family: Trebuchet MS,

Re: [css-d] Can media values be used as a part of a selector ?

2010-04-07 Thread Philip TAYLOR
Tim Snadden wrote: You can handle this as follows: @media print { body { font-family: Arial Narrow, sans-serif ; } } @media screen { body {font-family: Trebuchet MS, sans-serif; } } Thank you, Tim. I assume that the @media constructs appear within a style element; is that

Re: [css-d] Can media values be used as a part of a selector ?

2010-04-07 Thread Tim Snadden
On 7/04/2010, at 10:26 PM, Philip TAYLOR wrote: Tim Snadden wrote: You can handle this as follows: @media print { body { font-family: Arial Narrow, sans-serif ; } } @media screen { body {font-family: Trebuchet MS, sans-serif; } } Thank you, Tim. I assume that the @media

Re: [css-d] Can media values be used as a part of a selector ?

2010-04-07 Thread Philip TAYLOR
Tim Snadden wrote: They can appear instyle elements or in external stylesheets. Also, you aren't limited to one ruleset. Excellent, many thanks for the clarification. Already deployed, tested and in use :-) ** Phil. __