How to position an element with position: absolute inside another same element with position: absolute.
If you do not specify left, top, then the element is displayed just below the parent. I need to shift it a little. By specifying left and top you can position the element at the specified coordinates, but the connection with the parent is lost.
And do all this without javascript. With JS, there would be no question.
Now a little more. Maybe I am inventing a bicycle, but I needed to make a multi-level popup menu. Of course, I was looking for ready-made solutions, but there was nothing suitable.
Now it is implemented, literally, by 2-3 small classes. The problem is that the submenu is displayed below the parent element, overlapping the rest. It is impossible to change position to relative - then the submenu will occupy a place in the main menu. The coordinates can not be determined - they are non-permanent.
And I repeat once again - without using JavaScript.
Is it possible to do this?