|
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.
Navigation:
[Reply to this message]
|