How to use different images in the background-image, according to screen size?

Asked

Viewed 47 times

1

I’m optimizing a site and wanted to know if I have how to use different background-image according to screen size.

For example, screens larger than 640px use the image /referent123/original.jpg and if smaller, use /reference123/smaller.jpg.

Only it can’t be fixed image, because it’s a revenue site and each recipe uses a different image

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.