I have created 4 columns. Each column consisting of an image, where I want to place text over each image.
To achieve this, I obviously need to set the image as a background. I am aware that this can be achieve through CSS (which is what I am currently doing) but I would like to place the image as a background, within my HTML file. The reason; so that I can enter the relevant ‘alt’ text for SEO purposes.
How can I best achieve this?
2
Answers
Just put the
img
in the col container, set that element toposition: relative;
then useabsolute
positioning to put the text over the image.