Let’s say i have the following code:
<div class="wrapper">
<div class="title"></div>
<div></div>
</div>
<div class="wrapper">
<div class="title"></div>
<div></div>
</div>
<div class="wrapper">
<div class="title"></div>
<div></div>
</div>
On hover for a wrapper I want it’s child title div to change it’s background color.
Can I do this in pure css. In js I know how to do it. I’m interested if a pure CSS method exists for this?
Thanks
Yes, you can do this. It’s just:
EDIT:
Please note that IE6 recognizes
:hoveronly ona-elements, so this won’t work – but i hope you don’t have to mess with that crappy old thing.