WordPress.org

Ready to get started?Download WordPress

Forums

Spun
Underline links in body only (3 posts)

  1. carriekim
    Member
    Posted 9 months ago #

    Hello there. I am very green when it comes to CSS and I was wondering if someone could share the code I'd need to put into my Custom CSS Manager to underline the links in the body copy of my website. (My site is here.

    An example of what I'm trying to accomplish can be found on this page — where you see the links "Read auto reviews" / "Read blog posts", I'd like those links to be underlined. When I tried using something I found previously here, it underlined ALL links, including the site name, navigation links, etc.

    I apologize in advance for this question since its been asked before. Thanks for the help!

  2. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 8 months ago #

    Hey. The CSS you need to input into your plugin is:

    .entry-content a {
    border-bottom: 1px solid #666;
    }

    An alternative is:

    .entry-content a {
    text-decoration: underline;
    }

    Either would underline the links as you wish. (border-bottom is my preference as I think it looks a little nicer, but text-decoration is the most widely used across the web.) Take your pick.

    Hope this helps. :)

  3. mindyjoy
    Member
    Posted 4 months ago #

    Just wanted to say thanks Siobhan, I was searching for this and it worked perfectly.

Reply

You must log in to post.

About this Theme

About this Topic

Tags