|
Posted by jojo on 12/23/41 11:53
joshbeall@gmail.com wrote:
> I recently had someone look at a stylesheet I had written up, and they
> gave me a slap on the hand for putting something like this:
>
> div.someclass {
> border: 1px red solid;
> }
>
> They said it was not the proper order. Fair enough, so I made it this:
>
> div.someclass {
> border: 1px solid red;
> }
>
> Which is, I'm told, the correct order.
>
> However, I then heard from another miscellaneous site* that the order
> doesn't matter.
>
> So, who is correct? Can anyone point me to the relevant portion of the
> specs that would say who is correct?
>
> -jb
>
>
> *Item number 3 from this page:
> http://www.evolt.org/article/Ten_CSS_tricks_you_may_not_know/17/60369/
>
ASFAIK the order doesn't really matter. But specs (see:
http://www.w3.org/TR/REC-CSS2/propidx.html ) say that it has to be
'width' 'style' 'color'. But most browsers understand it every way
round, although that isn't correct. Is just the browsers doing you a
favor (but they don't need to!).
[Back to original message]
|