View Full Version : Triggering hover from another hover

01-30-2007, 01:37 AM
if I have css like this:

{background .....

is it possible that on hover on button1, the hover event would be
triggered on button2 too ?

01-30-2007, 01:52 AM
Not sure... It may be possible in CSS but the only way is to use the same class.


input.button:hover {
background-color: #ff0000;


<input class="button" type="submit" name="submit1" />
<input class="button" type="submit" name="submit2" />

I doubt it, but go ahead and try it. If it doesn't work, try using Google. Search something relative to JavaScript.

01-30-2007, 05:56 AM
Nope. The point is that I have three divs, which will combined form button with round corners(side divs pictures of round corners). On hover on any of them hover should be triggered on the rest two of them (change of picture in all of them --> raised, .....)

So your sample wouldn't work. Did some googling but no luck.

Any other ideas ?

here is the link where I have gotten the idea. But I want buttons of variable width
(and with smaller sourcepictures possible, no need to mention (-: )