I have multiple divs that show an image, and when someone hovers one of the images a div that correspondes with that image will appear. I have it half working, but only the right most item works, the rest do nothing.
CSS:
.csshover {
display: none;
float: left;
width: 100%;
}
#cssimage {
float: left;
width: 20%;
}
#cssimage:hover + .csshover {
display: block;
}
.htmlhover {
display: none;
float: left;
width: 100%;
}
#htmlimage {
float: left;
width: 20%;
}
#htmlimage:hover + .htmlhover {
display: block;
}
HTML:
<div id="cssimage">
<img src="files/images/css3.jpg"/>
</div>
<div id="htmlimage">
<img src="files/images/html5.jpg"/>
</div>
<div class="htmlhover">html Test message</div>
<div class="csshover">CSS 3 Test message</div>