HTML CSS
<figure class="textover"> <img src="IMAGE.jpg"/> <figcaption>CAPTION </figcaption> </figure>
01
.textoverimg { position: relative; } .textoverimg figcaption { position: absolute; top: 0; left: 0; }
02
.textover { max-width: 600px; } .textover img { width: 100%; } .textover figcaption { color: white; background: rgba(0,0,0,0.5); }
03