Keep my open menu in front of the other elements

I am making dropdown buttons in order to show and hide elements. However when they are in the open state they go below the other elements. How do I keep them in front?

Thanks! It’s exactly what I needed to solve the issue. And thank you for being so fast!