|
Posted by Els on 02/26/06 04:15
David Dorward wrote:
> Els wrote:
>
>> Then just use #sverige. There is only one element with id 'sverige' on
>> the page (I hope!), so the class need not be mentioned.
>
> The same stylesheet might be used with multiple documents with an element of
> id "sverige" but different pages could have different classes assigned to
> that element.
Yes - I actually thought of that before I wrote my reply, but I didn't
want to complicate the matter further than necessary. That is, because
I was under the impression that .foo#bar wasn't an allowed
combination.
Apparently, according to this link:
http://penguin.theopalgroup.com/cgi-bin/css3explainer/selectoracle.py
you can actually write it exactly as Luigi described.
I didn't know that though - is it correct according to the W3C spec?
--
Els http://locusmeus.com/
Navigation:
[Reply to this message]
|