At 3/19/2007 06:59 AM, Sandy wrote: >Another related question - is there a good way, once your link is nicely >tucked into a <li> of getting the background of the container <li> to >change colour on mouse over, instead of just the A background colour?
No -- that would require the ability to affect the parent of an element. We can only affect elements and their descendants. Here's a spiffy document that details the kinds of selectors you can use: W3C CSS 2.1 Specification 5 Selectors http://www.w3.org/TR/CSS21/selector.html What you can do, however, is to style the link itself as a block {display: block} and change its background-color on hover. >Right now I dodge this issue by just having the text colour change on >mouse over, but one day this bluff is going to get called! > >Is <a href="link.html"><li>link</li></a> acceptable? No -- there can't be any elements between a list (OL or UL) and its child list items. HTML 4.01 Specification 10 Lists 10.2 Unordered lists (UL), ordered lists (OL), and list items (LI) http://www.w3.org/TR/html4/struct/lists.html#h-10.2 The code: <!ELEMENT UL - - (LI)+ means that the only immediate children an unordered list can have are LIs. Regards, Paul __________________________ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/