Try the following:
<style type="text/css"> a img { text-decoration: none } // Images within </style>
However, this is terribly general, and if your anchors have padding, they will not work completely, there may be leftovers located to the right and left of your image.
Itβs best to enable underline for links in general, define a CSS class for your anchors, and include in this class:
a { text-decoration: none } a.my_anchor_class { text-decoration: underline }
source share