My image has the CSS property position: relative
and it is covering some text content.
Is there a way to bring the text in front of the image?
I have already tried adjusting the z-index
but it didn't work.
Below is the code snippet:
h2 {
padding-top: 100px;
}
img {
position: relative;
top: -150px;
}
<h2>1715</h2>
<div class="img-wrapper">
<img src="http://cdn.xl.thumbs.canstockphoto.com/canstock24510515.jpg" >
</div>