Search code examples
cssbackground-image

What are all the file types that are supported by the CSS property background-image?


I cannot find any primary source documentation on what file types are supported by background-image. The W3 specifications specify "visual" media, but I cannot find a reference to file types.


Solution

  • probably css background depend most formats usage like : jpg jpeg png and more ...

    here in mdn some supported image formats enter image description here

    don't use any wired format