W3C home > Mailing lists > Public > www-style@w3.org > December 2003

hover affecting multiple classes

From: Douglas, John <JDouglas@GTNInc.com>
Date: Wed, 10 Dec 2003 17:31:40 -0500
Message-ID: <60377408A945D311A2AA00508B0BBA5001011654@GTNMAIL>
To: "'www-style@w3.org'" <www-style@w3.org>

is it possible (in CSS2) to have multiple elements be affected when a
certain element has the cursor hover over it?

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

.master {
	color: blue;
}
.slave {
	color: black;
}

what would be the proper css so that if i hover over "stuff" that "wow"
changes color?
Received on Wednesday, 10 December 2003 17:29:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:25 GMT