[Resolved] How to add underline to hyperlinked text

Home Forums Support [Resolved] How to add underline to hyperlinked text

Home Forums Support How to add underline to hyperlinked text

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1111658
    Chris

    Is there a way to add an underline when you hover over a linked text.

    So if I hover over a text, it should look like this: http://prntscr.com/qeg9ok

    #1111662
    Chris

    I came across another topic and applied this code:

    body:not(.blog):not(.archive) .inside-article a {
        font-weight: bold;
        text-decoration: underline;
    }

    However, it adds an underline to all linked text. Is there a way to only add underline when hovering over text?

    #1111711
    Leo
    Staff
    Customer Support

    Hi there,

    Try this instead:

    body:not(.blog):not(.archive) .inside-article a:hover {
        font-weight: bold;
        text-decoration: underline;
    }
    #1111722
    Chris

    That helps, however, it removed the bold.

    Here’s how it looks without hover: http://prntscr.com/qegsb5
    Here’s how it looks with hover: http://prntscr.com/qegseb

    Could I make the text bolded without hover? And whenever I hover over the text, it adds underline?

    #1111762
    Leo
    Staff
    Customer Support

    This would be your full CSS:

    body:not(.blog):not(.archive) .inside-article a {
        font-weight: bold;
    }
    body:not(.blog):not(.archive) .inside-article a:hover {
        text-decoration: underline;
    }
    #1111769
    Chris

    Thank you my good sir ๐Ÿ™‚

    #1111771
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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