[Resolved] Links: how to remove underline on hover and active

Home Forums Support [Resolved] Links: how to remove underline on hover and active

Home Forums Support Links: how to remove underline on hover and active

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1319778
    Ricardo

    Hi,

    I’m using this css that you provide in a previous topic:

    .site-content p a:link,
    .site-content p a:hover,
    .site-content p a:active,
    .site-content p a:visited {
    text-decoration: underline;
    }

    I would like to have a hover and active effect: to remove the underline.

    For that, I tried to simply remove

    .site-content p a:hover,
    .site-content p a:active,

    but it didn’t work.

    Also set

    .site-content p a:hover,
    .site-content p a:active,{
    text-decoration: none;
    }

    but it didn’t work.

    Any idea on how to achieve that?

    Thanks in advance,
    Ricardo Pons

    #1319872
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #1319879
    Ricardo
    #1320015
    Leo
    Staff
    Customer Support

    I just tried and this should work:

    .site-content p a:hover {
        text-decoration: none;
    }

    Can you give it a shot and leave the code in even if it doesn’t work?

    #1320374
    Ricardo

    It’s perfect!

    Sorry that I’m a CSS noob 🙂

    Thank you!

    #1320929
    Leo
    Staff
    Customer Support

    No problem 🙂

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