B
B
bulbazaur2011-06-10 12:44:23
HTML
bulbazaur, 2011-06-10 12:44:23

Change properties of a specific div on a:hover via CSS?

There is one div followed by another (can't find a code formatting service to show). When hovering over a link in the second div, is it possible to change the properties of the first one, like background?

<div id="ball"></div>
<div id="links">
<a href="#">LINK</a>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
homm, 2011-06-10
@bulbazaur

As a special case, make the first block inside the link and move it where necessary using position: absolute;

S
Shedal, 2011-06-10
@Shedal

I think even if you find a solution with CSS3, it's still much faster and easier to solve your problem with javascript. This solution will at least work in all browsers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question