Since your first div is position absolute it is brought outside the natural hierarchy of elements. You can now freely choose a position for it. Your second div is now pushed up and is therefore at the same position as the first div was before setting it to absolute.
Divs are by default display: block;
so they go underneath each other.
You can add z-index: 5;
(or whatever number) to the second div in order to bring it to the front. And if that's not working add a lower z-index to the absolute positioned element. Keep in mind in order to use z-index you always need to specify the position:
What do you actually want to accomplish? I can improve my answer then.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…