fabriceunko Posted March 19, 2019 Share Posted March 19, 2019 hello, how to put a background image that adapts to the resolution of the screen? thanks you Link to comment Share on other sites More sharing options...
bsmither Posted March 19, 2019 Share Posted March 19, 2019 Images implemented via the CSS background rules can be sized several ways. See: https://www.w3schools.com/cssref/css3_pr_background-size.asp Find a place in your skin's CSS rules to add: body { background: url("/path_to_image/image.jpg"); background-repeat: no-repeat; background-size: 100% 100%; } This should scale the image to fit the viewport. However, you are phrasing your question in such a way as to suggest wanting different images: imageA.jpg for small screens, imageB.jpg for medium screens, and imageC,jpg for large screens. Let us know if that is what you meant. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.