I've been messing around with CSS a bit, and thought up of an idea where if I have a two boxes (one on top of the other) and put a mouse over them, then they'd both change colors at the same time. The problem is that I don't really know how to do it without having to resort to using images. What I've tried was making a wrap (I named it .wrap), and inside it I placed .top and .bottom boxes. They are both different colors. Then I made a hover for each box with slightly lighter colors. This works, but the problem is that it only changes one box's color at a time, so if I hover over the top box, then it will change colors, but the bottom one remains the same. Does anyone know if it's possible to change both at the same time using just html and css (without resorting to images, javascript, etc.)?
Here's an image of what I'm trying to accomplish. The black border around each box simply shows .wrap as it houses both of the boxes. The green box is .top, and the grey box is .bottom. The box on the right is what I'd like to accomplish when the mouse is over it.
Here's an image of what I'm trying to accomplish. The black border around each box simply shows .wrap as it houses both of the boxes. The green box is .top, and the grey box is .bottom. The box on the right is what I'd like to accomplish when the mouse is over it.
