RE: [WSG] @media ordering in stylesheet

2010-08-05 Thread Erickson, Kevin (DOE)
No, the last one overrides the ones before it. Kevin -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Jody Tate Sent: Thursday, August 05, 2010 1:21 PM To: wsg@webstandardsgroup.org Subject: [WSG] @media ordering in stylesheet Hi

Re: [WSG] @media ordering in stylesheet

2010-08-05 Thread David Storey
On 5 Aug 2010, at 19:20, Jody Tate wrote: Hi all, Does @media rule ordering in a stylesheet matter? For example, given the following order: @media print { body { #FF; } } @media all { body { #99; } } Will @media

Re: [WSG] @media ordering in stylesheet

2010-08-05 Thread Russ Weakley
Hey Jody, First of all, the rules are incorrectly written. you need to include a property in front of the value: @media print { body { color: #FF; } } @media all { body { color: #99; } } Secondly, the winner is the second rule. @media rules are just containers

Re: [WSG] @media ordering in stylesheet

2010-08-05 Thread Jody Tate
Thanks for the responses. I needed the experts in the group to confirm my suspicions. Best, jody *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm

Re: [WSG] @media ordering in stylesheet

2010-08-05 Thread Russ Weakley
wow - three answers for the price of one :) On 06/08/2010, at 3:45 AM, David Storey wrote: No. the @media all will apply (well if there were any valid rules in the block). If the specificity is the same (as is the case in this example) and the query conditions both apply then source