function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srinu vassrinu vas 

background image is not working

i have written a code like
i have place mybackground.gif image into images folder
created css name with mystyle.css file having code
body {background-image: url(mybackground.gif);}
both images and css files places into zip file
uploaded into static source named as  MyStaticResources
apex code
<apex:page showHeader="false">
<apex:stylesheet value="{!URLFOR($Resource.MyStaticResources, 'mystyle.css')}"/>

</apex:page>


but it is not working please give me sugestion .........
AshlekhAshlekh
Hi,

You  can see the image url is correct or not.

1) Find the URL of your image by inspect element.
2) Find the url of your css.
3) comapre your both url and provide relative url in css, Do all this in by inspect element if make easy and fast when you scess that put in your css file