I have a paragraph (.about-info p
) that I am trying to hide behind another element (.about-container
). I am trying to layer the elements so that .about-info p
appears behind .about-container
but have been unsuccessful so far using z-index
.
Can you help me understand why? The site is here. Thanks for your ideas!
<div class="about-info">
<p>stuff</p>
</div>
<div class="about-container">
More stuff
</div>
.about-container { z-index:9999; position:relative; }
.about-info { background-color: #d7d7d7; z-index:-700; position:relative; }
.about-info p { z-index: -800; position:relative;}
the problem is that the body has background image and the about-container
doesn't! thus it is transparent.
so if you put a background-image (same as body) to the about-container
it should be fixed