Click here to Skip to main content
15,887,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends.
I am working on custom server control. I need to embed js,css and image files in control. I have added js and css file but I am facing a problem to embed images which is in css file. I have set background image in one class in css file but that image does not display when I run the page.

So Is it possible to add webresourceurl for images which are placed in css file?



Thanks
Imrankhan
Posted

I think its because of the wrong image path. How you specified image path in CSS?
 
Share this answer
 
Comments
Imran Khan Pathan 23-Jun-10 5:26am    
image in css file.
background: url(bottom.gif) no-repeat right bottom;

note: images are placed in server control not in web application.
image in css file. background: url(bottom.gif) no-repeat right bottom; note: images are placed in server control not in web application
 
Share this answer
 
Comments
Arun Jacob 23-Jun-10 5:36am    
Check if the relative image path is specified as correct in CSS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900