Is it possible to set the src attribute value in CSS? At present, what I am doing is:
src
You can convert it with JS:
$('.image-class').each(function(){ var processing = $(this).attr('src'); $(this).parent().css({'background-image':'url('+processing+')'}); $(this).hide(); });