You are here: Re: Proper order for settings to CSS border selector « HTML « IT news, forums, messages
Re: Proper order for settings to CSS border selector

Posted by jojo on 12/27/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!).

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация