Reply to Re: CSS: Class error

Your name:

Reply:


Posted by Michael Winter on 02/27/06 21:46

On 27/02/2006 15:25, Luigi Donatello Asero wrote:

> "Michael Winter" <m.winter@blueyonder.co.uk> skrev i meddelandet
> news:OBiMf.26795$wl.17280@text.news.blueyonder.co.uk...

[snip]

>> The reason why
>>
>> .subsubsection#sverige a
>>
>> fails is because the id selector follows the class name.
>>
>> #sverige.subsubsection a
>>
>> will be accepted.
>
> So is the latter the correct form although the former is tolerated?

As far as the grammar for CSS 1 is concerned, yes. For CSS 2 (and
later), the order is not important and the selectors are equivalent.

> Is
> #sverige.subsection a=
> <a class="subsection" id="sverige"> ?

No, see Steve's reply.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

[Back to original 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

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