[Resolved] Hyperlink CSS

Home Forums Support [Resolved] Hyperlink CSS

Home Forums Support Hyperlink CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1269058
    Mark

    Hi

    Please can I have the CSS code that will make the text black and the green line under the hyperlinks in content remain. I like the green lines but I just want the text black so it looks a little more striking.

    Thank you for any help with this.

    #1269136
    David
    Staff
    Customer Support

    Hi there,

    the text-decoration property always inherits its parent styles – so they have to be the same color. Instead you can use this CSS to add a border below:

    .entry-content a {
        color: #000;
        border-bottom: 1px solid #20c92e;
    }
    #1270308
    Mark

    Unfortunately, that doesn’t appear to work. What I am looking to do is have a hyper link in the text of the post with the writing black underlined with a green line. If this isn’t something that can be done with CSS that’s fine.

    #1270437
    David
    Staff
    Customer Support

    in Customizer > Additional CSS – remove:

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

    And add the code i provide here

    Note: I added the color: #000; property to change the link color. You can remove this and set the color in Customizer > Colors > Content –> Linls instead.

    Make sure you clear any browser caches if the change doesn’t occur immediately.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.