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.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: