I have multiple images placed in divs adjacent to each other as shown below:
<div id='images'>
<div class="iphoneimage">
<img src="img1.jpg" height="300">
<h5 class="size">1363 x 2048</h5>
</div>
<div class="iphoneimage">
<img src="img1.jpg" height="300">
<h5 class="size">1363 x 2048</h5>
</div>
</div>
These elements are styled using the following CSS:
.iphoneimage {
overflow: auto;
width: 169px;
float: left;
}
img {
position: relative;
}
h5.size {
position: absolute;
top: 200px;
left: 20px;
width: 100%;
}
I am attempting to display text on top of each image, but currently only one set of text is appearing over the first image.