Gmail styles link as blue and underlined by default

Gmail styles link as blue and underlined by default

#1155CC is the default colour for Gmail links. You can overwrite this colour using inline CSS. However, Gmail ignores #000, #000000, and “black” values.  For example:

This will render as red:

<a href=“http://www.emailonacid.com” style=“color:#C00”>test</a> 

This will be rendered as the default (#1155CC) colour:

<a href=“http://www.emailonacid.com” style=“color:#000000”>test</a> 

To fix this use a different hex value that is close to black:

<a href=“http://www.emailonacid.com” style=“color:#040400”>test</a> 

Underline

Links in Gmail are also underlined by default. You can overwrite this style using inline CSS.

For example:
This will render with an underline:

<a href=“http://www.emailonacid.com”>test</a> 

This will render without an underline:

<a href=“http://www.emailonacid.com” style="text-decoration:none">test</a> 

Author

  • Rogerio da Silva is a Brazilian who lives in the UK for a little over two decades. He is the owner of a test consulting and outsources services for software development. He likes to blog, write and create content that teaches others how to live a better life.  He loves reading biographies of successful authors and dream builders because they inspire him to keep creating!
    You can contact Rogerio for anything related to Business & Test Analyst | Microsoft Dynamics 365 CRM | QA | Agile | Manual | Integration & Automation | DevOps | API | Cloud | AI | IoT | CRM | Website Consulting | Email Consulting | Facebook Ads | Social Media Marketing Plan | Sales Funnel | Looking for Scalable Services? InShore, OffShore or Hybrid. Interested? Ask me how we can help.

Leave a reply

Publication

Now available on amazon prime

eBook (Amazon)

The Testers Book - An Unconventional Way to Software Testing - Revised Edition

Paperback (Lulu.com)

Podcast