On Jul 15, 2010, at 7:37 AM, Thijs Hakkenberg <th...@hakkenberg.com> 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 [cs...@lists.css-discuss.org]
> 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

(Please forgive any typos caused by huge fingers on a teeny phone keybard.)
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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