Is your background image in the Mendix/ProjectName/theme/img folder? And can you try to use the folowing css code:
background: url(“../../../img/image_bg.png”) no-repeat center;
I hope it works.
the default root directory for images placed in the themes/img folder (for mx7) should be:
(Depending on how your sass is structured)
give it a try :D it should still work the same, or maybe 1 less “../” :D
Thanks for your answers. I tried as you people mentioned before posting here. But the actual issue was with the image names generated in the deployment – web -img folder. When trying to access the images which were uploaded from Mendix a prefix is getting appended like ModuleName$Image_collection$ImageName in newer version of Mendix. Previously it is like ModuleName$ImageName. So due to this, it is unable to find the image.
But, Thank you all for your help!