parent1,z-index=2

parent1,position=absolute, z-index=5

parent2

parent2, position=absolute, z-index=4
parent2,position=absolute, z-index=1