Previous Message
Next Message

Problem with background color change on hover

Sent by Els on 28 March 2006 21:09

Kimberley Wilcox wrote:
> This is probably a newbie mistake (I'm still learning CSS),
> but I am having trouble with changing the background-color for
> a:hover on my list items. I would like for the whole block to
> change from gray to white, and currently only the area behind
> the text changes color. 

> #navigationlinks li a {
>    width: 100%;
> }

You just need to add display:block on the <a> element.


css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: