[thelist] a CSS Question

ben morrison morrison.ben at gmail.com
Wed Feb 22 03:47:16 CST 2006


On 2/21/06, Casey <aspnet at thecrookstons.com> wrote:
> a.drop_links:hover {
>  text-decoration: underline;
>  color: #000066;
>  .border background-color: #ffffff;
> }
>
> .border {  background-color: #eaeaea; }
>
>
> The idea here is that when the mouse is hovered over the link with class
> drop_link, the background color in class border also changes.  Not sure of
> the css syntax...

Casey,

You cannot insert a selector (class/id etc.) inside another selector.

The only way you can change a separate class when mousing over an
element is with javascript.

ben



More information about the thelist mailing list