HTML:
<div class="cell-container">
<img src="image.png" class="thumbnail" />
</div>
CSS:
.hover {
background-color: silver;
}
.hover-image {
border: 1px solid #000;
}
jQuery:
$(".cell-container").mouseover(function() {
$(this).addClass("hover");
});
$(".cell-container").mouseout(function() {
$(this).removeClass("hover");
});
To achieve a highlighted background onmouseover for the cell-container
div and add a border to the image inside, you can use the provided CSS and jQuery code.