> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rafael > Sent: 05 September 2007 17:30 > To: [EMAIL PROTECTED] > Cc: css mailing list > Subject: Re: [css-d] [solved] Background shorthand: Quick question > > Micky Hulse wrote: > > I also had an excellent off-list reply:
I keep forgetting that you have to "reply all" on this list :-( > > > > [[ > > "If at least one value is not a keyword, then the first > value represents > > the horizontal position and the second represents the > vertical position." > > <http://www.w3.org/TR/CSS21/colors.html#propdef-background-position> > > > > In other words, if both values are keywords order doesn't matter. > > ]] > > > Well, you can't combine keywords with anything that > isn't, i.e. 'top > 5%' or 'top 4px' are invalid (IIRC), and the keywords are correctly > interpreted because they are mutually exclusive (except for "center", > but it doesn't matter in which order "center center" is interpreted, > right?). It still sounds like an invitation to use the "x y" order :) Although "top 5%" is invalid, that's only because the horizontal position must come first if one of the values is not a keyword; so "5% top" or "left 23px" are valid. However, for clarity, I tend to use either just keywords or just units, rather than mixing them together: "0 23px", for example. Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/