CSS for links in email notifications

mdsannavulla
Kilo Guru

Hi All,

How to set the color for ${URI_REF} in email notifications. By default it is coming in blue color. I kept text color as red by using Rich HTML editor but it is coming as blue only in emails.

Any idea on this?

10 REPLIES 10

Manjul Katare
ServiceNow Employee
ServiceNow Employee

Hi Sannavulla,



I'm assuming your HTML is something like this: <a href="${URI_REF}">Some Text Here</a>


if so, you can apply the color by using inline css style, for example:



<a href="${URI_REF}" style="color:red;">Some Text Here</a>



Hope this help!


-Manjul


I have directly given like ${URI_REF} and given color as red by using Rich HTML editor


Can you share screenshot of your Rich HTML editor content and also the HTML source of it? I can try to reproduce it on OOB instance.


-Manjul


Link.png



and source code is



<div>Short description: ${short_description}</div>


<div>Click here to view: <span style="color: #ff0000;">${URI_REF}</span></div>


<div>


<div><hr /></div>


</div>


<div>Comments:</div>


<div>${comments}</div>