The mentioned website utilizes a unique css class that is dynamically added to each div element when the user hovers over it. This specific class is named "selected". Below, you will find instructions on how to implement and remove classes using jquery in order to achieve a similar effect.
CSS
To begin, define the styles you desire for your div when it is hovered over:
.selected {
background-color: lightblue;
color: blue;
font-weight: 700;
}
jquery
Next, create a jquery function for hovering over each div. This function will add the "selected" class when hovering and remove it when moving onto another div.
$('.hoverdivs div').on('hover', function() {
var selected = $('.hoverdivs div.selected');
selected.removeClass('selected');
$(this).addClass('selected');
});
HTML
Finally, here is an example of what the HTML structure could look like for this scenario:
<div class="hoverdivs">
<div class="hoverdiv1">
</div>
<div class="hoverdiv2">
</div>
<div class="hoverdiv3">
</div>
<div class="hoverdiv4">
</div>
</div>
Remember to initially format your divs and populate them with content. Hopefully, these guidelines are helpful to you.