Try uploading the image to Site Assets in your SharePoint site and edit the link in css to point to that location. It should fix it.
CSS Background Image Not working in SP 2013, but works Locally
-
28-09-2022 - |
Question
This works locally
body {
/*background: Gainsboro;*/
background: url(../dt_images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
When I edit the master page html file on the server for SP 2013, it doesn't show (all of my other override CSS works though...). You cannot see the cloudy background.
body {
background: url(../DT_CustomFiles/DT_IMAGES/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Does SP 2013 not allow background images?
Thanks
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow