Answer the question
In order to leave comments, you need to log in
Is there any way to set different formats for images in background?
Hello, tell me if, for example, for markup, you can go the way picture and soure set in several image formats, just in case, figuratively png and webp.
How to solve the issue with an image that is set in css, options, or take the risk that webp is suddenly not supported by a person, or implement all this through markup, stretching the image to the background through positioning?
Answer the question
In order to leave comments, you need to log in
<picture>
<source srcset="picture.webp">
<source srcset="picture.png">
</picture>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question