#red, #blue {
position: absolute;
width: 100px;
height: 100px;
}
div:hover {
background-color: yellow !important;
}
#red {
background-color: red;
}
#blue {
background-color: blue;
top: 50px;
left: 50px;
}
<div id="red"></div>
<div id="blue"></div>
Is it possible to trigger hover event on multiple elements under cursor without using javascript? How can I make both squares yellow in this simple example?