WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Remove underline from linked images

[Resolved] Remove underline from linked images

Viewing 7 replies - 1 through 7 (of 7 total)
  • For that image link add

    style=”text-decoration: none;”

    Thank you!

    I would want this for every image so would I just put this in the style.css or even custom css?

    Try

    a img {text-decoration: none;}

    WPyogi

    @wpyogi

    Forum Moderator

    The “underline” is a bottom border on links – this:

    .single-content a {
        border-bottom: 1px dashed;
        color: #BA0D16;
    }

    Text-decoration styles won’t change that.

    Okay, thank you all for your help. I think I’ll just remove the underline from all links. Thats the only way right?

    WPyogi

    @wpyogi

    Forum Moderator

    Well, there’s no doubt some way to do that, it’s just a bit tricky with CSS sometimes. Actually using text-decoration looks like it would work – at least testing in Firebug it does:

    .single-content a {
        color: #BA0D16;
        text-decoration: underline;
    }

    It doesn’t look quite like the border, and there probably IS a way to do that, but see if the above works and looks okay to you.

    That worked, thank you!!!

    I’ll just have it underline when they hover.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Remove underline from linked images’ is closed to new replies.
Skip to toolbar