Re: hover affecting multiple classes

Douglas, John wrote:

> <a href="#" class=master>stuff</a>
> <div class=slave>wow</div>

> what would be the proper css so that if i hover over "stuff" that "wow"
> changes color?

In this case,

.master:hover + .slave { color: whatever }

In general, you would need to somehow select the .slave thing with a 
selector that passes through .master.

Received on Wednesday, 10 December 2003 20:30:24 UTC