Is it possible to set the src attribute value in CSS? At present, what I am doing is:
src
If you don't want to set a background property then you can't set the src attribute of an image using only CSS.
Alternatively you can use JavaScript to do such a thing.