> -----Original Message-----
> From: [email protected] [mailto:css-d-
> [email protected]] On Behalf Of Tim Arnold
> Sent: Thursday, July 15, 2010 8:51 AM
> To: Thijs Hakkenberg
> Cc: <[email protected]>
> Subject: Re: [css-d] background color of a with class
> 
> On Jul 15, 2010, at 7:37 AM, Thijs Hakkenberg
> <[email protected]> wrote:
> 
> > Dear List,
> >
> > I made an menu based on ul's and li's
> (http://winkel.varkensinnood.nl)
> > with an a:hover turning the a element white.
> >
> > However, when clicked the <a> element turns into <a
> class="active">.
> > I want to change the background color and should work with the
> > following
> > css:
> >
> > #block-uc_catalog-0 a .active {
> >    background: #fff;
> > }
> >
> > (it's embedded in a DIV).
> >
> > but this doesn't work. However,
> >
> > #block-uc_catalog-0 a:hover {
> >    background: #fff;
> >    }
> >
> > works.
> >
> > What am I missing?
> >
> ______________________________________________________
> ________________
> > 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/
> 
> If you copy/pasted into you message, the problem is that there is a
> space between "a" and ".active". It should be "a.active" not "a .active"
> 
> - Tim
> 

Or, it could be that you mean a:active -- not sure, since we don't hvace code 
to know if you have an "active" class.

--- Different Tim
______________________________________________________________________
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/

Reply via email to