Text over image in javascript and css
问题 I am trying to add text over a set of dynamic images that I have added with Javascript. I have a loop in JavaScript that adds images that are located in an AWS by looping with an index i. I'd like to add the value of the index i in the bottom right side of each picture (hence, a dynamic tag based on the value of the index i). I have this so far. HTML: <section id="photos"></section> CSS: #photos { /* Prevent vertical gaps */ line-height: 0; -webkit-column-count: 5; -webkit-column-gap: 0px;