On 11 Jul 2008, at 12:16, kevin mcmonagle wrote:

Hi,

Is it possible to target specific classes in a list to apply different background image to the different links in a list nav?

tried everything i could think of but cant get it to work.

something like:
#navlist li .furniture a

or applying the different images to the anchors instead of the lis?

tried but no use...

Hi Kevin;

Sure. But take care where you attach your classes with reference to how you structure your CSS. If (as it sounds) you are attaching the class to the list item, then your CSS should be:

#navlist li.furniture a

not

#navlist li .furniture a

Note the removal of the space; "li.furniture" refers to a list item that has the class 'funiture'; "li .furniture" refers to some other element with a class="furniture" *that is contained within* a list item.

HTH
--
Rick Lecoat
www.sharkattack.co.uk



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to