It seems like z-index doesn’t work with a div that has absolute position and that is relative to another div? I want the div that has absolute position to be below the other one, but I only get the opposite. Is there a way to solve this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This example will show you the codes to make one div appear on top of another with positioning.
HTML
CSS
Update: Use only positioning to get the effect you want.
Look here.