Hi all. I'm on a WinXP/IE6 machine...
If I have the following markup - basically a vertical menu of links and
sub-links:
....
<body id="tab2">
....
<ul id="site-links">
<li class="link2">
<a href="./aaa/index.htm">AAA</a>
<ul id="sub-links">
<li class="link2-1">
<a href="./aaa/sub1.htm">Sub 1</a>
</li>
<li class="link2-2">
<a href="./aaa/sub2.htm">Sub 2</a>
</li>
...
</ul>
</li>
</ul>
and I want to apply style to the first <A> element - say, bold the link
- without applying that same style to the other <A> elements - the
sub-links - within <li class="link2">, why doesn't this...
body#tab2 li.link2 > a
{
font-weight: bold;
}
work? Meaning, I realize this should bold all the links that are
children of li.link2 - which is not what I want. But it doesn't even do
that. What's wrong? And then, how do I just bold the first link and not
the sub-links?
Thanks,
motivus
If I have the following markup - basically a vertical menu of links and
sub-links:
....
<body id="tab2">
....
<ul id="site-links">
<li class="link2">
<a href="./aaa/index.htm">AAA</a>
<ul id="sub-links">
<li class="link2-1">
<a href="./aaa/sub1.htm">Sub 1</a>
</li>
<li class="link2-2">
<a href="./aaa/sub2.htm">Sub 2</a>
</li>
...
</ul>
</li>
</ul>
and I want to apply style to the first <A> element - say, bold the link
- without applying that same style to the other <A> elements - the
sub-links - within <li class="link2">, why doesn't this...
body#tab2 li.link2 > a
{
font-weight: bold;
}
work? Meaning, I realize this should bold all the links that are
children of li.link2 - which is not what I want. But it doesn't even do
that. What's wrong? And then, how do I just bold the first link and not
the sub-links?
Thanks,
motivus
Comment