Announcements
No record found.
hello,
Plz help me for add image in CSS Class by Web resource.
Thanks in advance.
*This post is locked for comments
Hi kiran,
you need to insert the right url to images.
If you want to be sure, navigate to "icon-right" web resource, copy image webresource url and paste it into url(...);
Please let me know if you solve.
If you found the answer helpful, please mark as Verified
Join my network on LinkedIn Follow me on Twitter
Thank You & Best Regards
Francesco Picchi
Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY
Independent Contractor
http://www.francescopicchi.com
Thanks alot Francesco Picchi
HTML web resource, CSS webresource and Image webresource should be in same folder structure then you can give relative path of Image in CSS.
for Example
HTML webResource name is new_/sample.html
CSS webResource name is new_/css/sample.css
Image Web Resource is new_/images/icon-right.png
then you can use below css class. or you can copy Image webresource url and use it in css class
Hi Francesco Picchi,
I think using webresource url is not standard practice. when you will move your solution in another environment url will be change for different.
Hi Mohammad,
you are right, however with a simple trick you could reach same result, cross environments:
just remove url parts before /WebResources (the rounded parts are good)
Hope it helps.
this path will not work in css. if you want to use Image web resource in CSS, all relative web resource should be in folder structure or you can use direct path of Image web resource. but web resource path will change for different environment. so you can create all related web resource in a folder structure.
you can try and let me know if you need any help from my side.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
JS-09031509-0 3
AS-17030037-0 2
Mark Eckert 2