skip to Main Content

Html – Cloudfront distributed image shows when entered as regular image, but not as a background image

I want to use a background image on my simple webpage. It's currently uploaded to S3 and distributed via Cloudfront. If I include: <img src="https://d1z230vfguramf.cloudfront.net/Image_Assets/test-image.png"> it displays as one would expect. using: <div style="background-image=url('https://d1z230vfguramf.cloudfront.net/Image_Assets/test-image.png')"> </div> The image is not visible.…

VIEW QUESTION
Back To Top
Search