Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Auto underline in marketing email hyperlinks and buttons

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi - is there a way auto-underlining of hyperlinks can be disabled in marketing email/email templates? We are custom designing a template for wider corporate use and buttons have been styled to appear without underlines. I have tried using the html tag 'text-decoration: none;' to remove the underline but every time a user edits the button, D365 automatically adds back the underline.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto underline in marketing email hyperlinks and buttons

    It has even less impact unfortunately. While earlier if text-decoration element was added underline won't show in D365 designer unless the link was edited. The element in span style is not even considered unless it has been added via D365 designer.

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Auto underline in marketing email hyperlinks and buttons

    Hi,

    I'd like to confirm if the issue still exists.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Auto underline in marketing email hyperlinks and buttons

    Hi,

    I have tested with your code but there is no underline shown in my Outlook client.

    pastedimage1638171455743v1.png

    Maybe you can follow the next issue to adjust your HTML.

    Outlook desktop app for windows 10 link underline - Microsoft Community

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto underline in marketing email hyperlinks and buttons

    It's only Outlook but more than that D365 removes the code "text-decoration: none !important;" every time I try editing the button before sending (text/hyperlink changes). Here's the code I am using:

    <div data-editorblocktype="Button" align="center"><a href="" style="text-align: center; margin-right: auto; margin-left: auto; display: inline-block; background-color: rgb(19, 35, 97); border-radius: 0px; color: rgb(255, 255, 255); width: fit-content; height: auto; max-width: 100%; line-height: normal; font-size: 14px; text-decoration: none !important; text-decoration: none; padding: 5px 7px; border-width: 1px; border-style: none; border-color: rgb(255, 255, 255); mso-hide: none !important;"><span style="font-family: Arial;">Learn more</span></a></div>

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Auto underline in marketing email hyperlinks and buttons

    Hi,

    Would you please share your HTML?

    Is the underline shown in all the email client?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto underline in marketing email hyperlinks and buttons

    Thanks Nya. Unfortunately no impact on the template and D365 keeps adding underline regardless.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Auto underline in marketing email hyperlinks and buttons

    Hi,

    Please try the following snippet.

    style="text-decoration:none !important; text-decoration:none;"

    Outlook will strip out the style with !important tag leaving the regular style, thus no underline. The !important tag will over rule the web based email clients' default style, thus leaving no underline.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans