Thierry Koblentz wrote:
>> I am trying to set custom background images for menu items on a menu
>> auto-generated through a CMS. Them CMS gives both a class and an ID to
>> each menu item, each has a numerical suffix. Example:
>>
>> <div id="whatever">
>> <ul>
>> <li >
>> <a
>>
>>
> href="index.php?option=com_content&view=article&id=99&Itemid=54"
>
>> class="menu-item3" id="menu54" title="CONTACT"><span
>> class="menu-title">CONTACT</span></a>
>> </li>
>>
>> <li >
>> <a href="index.php?option=com_user&view=login&Itemid=58"
>> class="menu-item4" id="menu58" title="DEALER/REP"><span
>> class="menu-title">DEALER/REP</span></a>
>> </li>
>>
>> ...
>> ...
>>
>> </ul>
>> </div>
>>
>>
>>
> Hi Bob,
>
> IDs and classes are set on the anchors, so your rules above do not match any
> element in the menu (google "descendant selectors" to better understand your
> problem).
>
> So since you need to be more specific than this:
>
> #ja-cssmenu li a {}
>
> You can try:
>
> #ja-cssmenu li .menu-item3 {}
>
> or this:
>
> #ja-cssmenu li #menu54 {}
>
>
> As a side note, it would be much better to have these hooks on the list
> items rather than the As.
>
>
>
==> Outstanding! I had hoped, suspected it was something to do with
descendant something but didn't know what to zero in on. Thanks much.
Why didn't I put up a link to the website? Because both this and
the-list are so highly indexed by big G that I refrain until a website
is further along. Unindexing something that is the first page a client
sees when they type their domain into big G is a tough lot. <<==
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/