web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can add image in Css web resource in Dynamics crm ?

(0) ShareShare
ReportReport
Posted on by 775

hello,

        Plz help me for add image in CSS Class  by Web resource.

3404.code.PNG

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

  • kiran_rajput Profile Picture
    775 on at

    Thanks alot Francesco Picchi

  • Verified answer
    ARIFNIIT Profile Picture
    1,391 on at

    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

    3404.code.PNG

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at

    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.

  • Community Member Profile Picture
    on at

    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)

    7536.Cattura.PNG

    Hope it helps.

    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

  • Verified answer
    ARIFNIIT Profile Picture
    1,391 on at

    Hi Francesco Picchi,

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans