Remove underlining on an image link

  • Author
  • #89996

    How to remove the underlining on an image that has a link? On the home page I put one and not him. Thank you

    The blog I need help with is




    The border is coming from the anchor tag, so this CSS would hide it:

    .entry-content a {
        border: none;

    To remove it from just the images you would need to add a class to your anchor tag and could then style from there, e.g. you might have:

    <a class="image"><img src...

    And then the CSS would be:

    .entry-content a.image {
        border: none;


The topic ‘Remove underlining on an image link’ is closed to new replies.