Posted by Steve Pugh on 02/27/06 21:27
"Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote:
>Is
>#sverige.subsection a=
><a class="subsection" id="sverige"> ?
No. And surely you've seen enough CSS by now to understand something
as basic as a descendent selector? Ignore the order of the #sverige
and .subsection, would you ask whether "#sverige a" matched <a
id="sverige"> or whether ".subsection a" matched <a
class="subsection">?
#sverige.subsection a
is the selector for
<foo class="subsection" id="sverige"><a>
The selector for <a class="subsection" id="sverige">
would be
a#sverige.subsection
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
[Back to original message]
|