I have a complex UI in which I need to re-arrange some of the elements not be overlapped by some others.
Concretely, and simplifying a lot, I have a main-content
div and a vertical-menu
on the right. The thing is that these two elements are siblings and main-content
contains a popover
that I want to be above vertical-menu
. This JSFiddle shows the problem.
Constraints are: I cannot change the position
attribute of these elements (it would hugely break my UI) and with that, I wouldn't be able to use z-index
since it only works with positioned elements. I cannot also modify the elements hierarchy.
I have also read that using transform
and opacity
helps "reset" the stacking contexts, but it seems not to be working. Is this at all possible?