You need to sign in to do that
Don't have an account?
srinu 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 .........
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 .........
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