Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Web Resources CRM Labels

Posted on by

Hi.  I am new to using Web Resources for putting Labels on a CRM form.

What I want to be able to do is create a Web Resource label that is over as far to the left as a Section label would be and have it with the same font and font size so that it looks exactly the same as a Section label.

I can get the label that I want on the form just not with the right sized font and not as far over to the left as I want.

I have defined the "Type" to be Webpage (HTML) and am using the Text Editor that is on the Web Resource form.

My first question is what font and size (below) as I am supposed to use.  It seems that I am not picking the right font and trying this with different font choices below I find that the "8 Point" size is too small and the "10 Point" size is too big and there is not a "9 Point" option

My second question is their a trick to getting it as far to the left as a Section label is?

Any suggestions on how I can get this done?

Thanks.

Rick Bellefond
RB Data Services
www.rbdata.com

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Web Resources CRM Labels

    Hi Rick,

    Sorry not padding, add negative margin (margin-left: -7px;).

    <html>
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <div align="left">
            <div style="margin-left: -7px; padding: 0px; width: 262px; height: 37px; text-align: left; color: rgb(68, 68, 68); font-family: Segoe UI,Tahoma,Arial; font-size: 12px; max-width: 210px;">
                <div align="left">
                    <strong>My Label</strong>
                </div>
            </div>
        </div>
    </body>
    </html>


  • RE: Web Resources CRM Labels

    Hi Nadeeja,

    It seems like if I make the padding option negative i.e., <div style="padding: 0px; width: 262px; that when I save it then it gets removed from the expression and I end up with <div style="width: 262px;

    I would think that I should be able to get it to line up with the other labels.

    Weird, huh?

    Thanks,

    Rick

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Web Resources CRM Labels

    Hi Rick,

    Try changing the padding with negative values.

  • RE: Web Resources CRM Labels

    Hi Nadeeja,

    I am staying just a little bit longer than I had planned.

    I took the code you gave me and made the label bold and made the width bigger and I now almost have what I am looking for.  My code as it now exists is:

    <html><head><meta charset="utf-8"></head><body><div align="left"><div style="padding: 0px; width: 262px; height: 37px; text-align: left; color: rgb(68, 68, 68); font-family: Segoe UI,Tahoma,Arial; font-size: 12px; max-width: 210px;"><div align="left"><strong>My Label</strong></div></div></div></body></html>

    I only need to move it maybe 2 or 3 letters to the left and I will have it.

    Any ideas, how to do that?

    Thanks,

    Rick

  • RE: Web Resources CRM Labels

    Hi Nadeeja,

    I am getting ready to leave for the day so I will try that on Monday.

    Thanks,

    Rick

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Web Resources CRM Labels

    Hi Rick,

    Here's what I used in a recent project.  You may have to adjust it to suit your form.

    <div style="font-family:Segoe\00020UI,Tahoma,Arial; font-size: 12px; width:150; max-width:150px; text-align: left; color: #444444; padding:0;">My Label</div>

  • RE: Web Resources CRM Labels

    Hi Nadeeja,

    First of all, thanks for responding to my post.

    I see that if I right click on the web resource label and choose Inspect that I see everything about the web resource label that I put on the form but if I right click on the Section label on the form I do not see anything.

    All I really want to know is what font, what font size is being used by default with CRM 2016 Section labels and can I move the web resource to the left so it will line up properly with the Section label above it.

    Thanks again.

    Rick

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Web Resources CRM Labels

    Hi Rick,

    You can use web browser developer tools to find out the styles (fonts family, size etc). Right click on an existing label and select Inspect.  That will open developer tools and you can find out the style element values.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans