Skip to content

CSS code snippet – How to stop gmail from underlining addresses in email dev?

/* How to override blue links in Gmail for email development: */
<style>
  u + #body a {
      color: inherit;
      text-decoration: none;
      font-size: inherit;
      font-family: inherit;
      font-weight: inherit;
      line-height: inherit;
  }
</style>


/* Also add "id="body"" to the <body> tag. */
<body id="body">
</body>

/* If you need anything underlined, add the style inline on the element to override the override. */
See also  Python code snippet - How to make a text skip a line break?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.