tancy
+44 7940 854119 (Mobile)
+44 23 92 610437 (Direct)
www.emicassociates.co.uk
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Bienz
Sent: 13 September 2006 12:15
To: vwf; css-d@lists.css-discuss.org
Subject: Re: [css-d] changing backgrounds in
>Thank you all for the various suggestions.
>It seems that the straight-forward approach is the way to go:
>simply add extra classes or id's for each of the elements.
>I implemented it, and it works perfectly.
>One question: why would I prefer 'id' over 'class' selectors?
ID's should be used t
on the one page (used more then once on the one
page)
Regards
PWP
- Original Message -
From: "vwf" <[EMAIL PROTECTED]>
To: <>
Sent: Wednesday, September 13, 2006 9:08 PM
Subject: [css-d] changing backgrounds in list items
> On 13/09/2006 10:58, vwf wro
On 13/09/2006 10:58, vwf wrote:
> I have a list of 6 items, and I want to associate a different image
> with
> each of the 6 items. Is there a smart/correct way to do this? Does
> someone know an example that has this implemented?
Thank you all for the various suggestions.
It seems that the strai
Sorry, need to fix my code sample:
.nav li a:hover {
background-repeat: no-repeat;
background-align: 0 0;
... other common styles...
}
.nav li a#home:hover {
background-image: url(images/home.png);
}
_
On 13/09/2006 10:58, vwf wrote:
> I have a list of 6 items, and I want to associate a different image with
> each of the 6 items. Is there a smart/correct way to do this? Does
> someone know an example that has this implemented?
I'd just add an ID or class (but more probably ID) to each of the lis
ect: [css-d] changing backgrounds in list items
> Hello,
>
> I have a list with a backgound that appears when I hover over it:
>
> #navlist ul li a:hover {
> background: url(image1.png);
> background-repeat: no-repeat;
> }
>
> I have a list of 6 items, and I want to ass
Hello,
I have a list with a backgound that appears when I hover over it:
#navlist ul li a:hover {
background: url(image1.png);
background-repeat: no-repeat;
}
I have a list of 6 items, and I want to associate a different image with
each of the 6 items. Is there a smart/correct way to do