Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : ( link is hidden, you must reply to see )
Description of problem
Hello everyone!I was messing around with some CSS to get something interesting going, but I cannot seam to find how this could work:
I have a PNG image (220x220 px). I want to hover over sections of it. On hover, the image should change. Example: the image is in black and white. On hover, the hovered area changes to colored version.
I have tried multiple ways, but I just cannot affect the outside div with hover. Is that even possible?
Let me know if you have any ideas or suggestions
P.S. The image would be used in "Announcement" section.
P.P.S. Making it very simple, this is what I want to do:
- Code:
.one:hover + .menu {
background-color:red;
}
.two:hover + .menu {
background-color:green;
}
- Code:
<div class="menu">
<div class="one">One</div>
<div class="two">Two</div>
</div>
Anyway, I could work with arrangement and have the .menu div bellow the .one and .two div's, but I cannot get them both to affect .menu .