I have a DOM structure containing several divs. Visually, some of these Divs are children of others, but in the DOM Structure they are all siblings.
I need to style the hover state of the "parent" divs even when hovering over its "child" divs.
Is there a way of doing this without Javscript? Maybe by using the current position of the divs to know they are inside of another div?
Update
The problem is the parents are actually siblings. There's only one container and let's say 8 children divs. 2 are bigger divs and the other six are shown 3 inside each bigger div. Something like:
Only the parent surrounding the hovered children should change color.
I can't change the DOM structure BTW.