In my experience, this is actually not a hack, but rather a way to simulate hover events using pure CSS. I mainly use :hover/:focus
for such problems, because
1.) They are reliable.
2.) Cheap (in terms of kb).
To enable a rule for a fully functioning menu, you need only 2 rules and an external HTTP request, but a few lines of JavaScript (or, horror, jQuery) to create the same thing.
What I said in the comments, you should or could use the tabindex
attribute to make the element be customizable, for example:
<div class="non-focusable-clickable-hover-element" tabindex="-1">I cannot be focussed<div> <div class="focusable-hover-element" tabindex="1">I can be focussed<div>
source share