Select Page

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> 

About The 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. Rogerio has two princesses and one powerful wife that help him with his work. He loves reading biographies of successful authors and dream builders because they inspire him to keep creating!

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