Site logo

[Resolved] Additional CSS Link Style

Home Forums Support [Resolved] Additional CSS Link Style

Home Forums Support Additional CSS Link Style

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #687707
    Samuel

    I use the following CSS style to get the following link style: http://prntscr.com/kzf5t2

    .inside-article a { border-bottom: 1px solid #88a0ba; }
    .inside-article a:hover { border-bottom: 1px solid #88a0ba; }

    But unfortunately I also get this line with pictures (http://prntscr.com/kzf5y3), because they also contain a link. I could now define an exception for each image. But is this the best practise? Isn’t there a definition that only includes text links?

    #687876
    David
    Staff
    Customer Support

    Hi there,

    you could use the text-decoration: underline; property instead of border, one of the downsides is the method of changing (or maintaining) the color on hover is not very well supported.

    The other method would be to make the rule more specific: eg.

    .inside-article p a, .inside-article li a, .inside-article p a:hover, .inside-article li a:hover   { 
        border-bottom: 1px solid #88a0ba; 
    }

    This will do the same as above but only only links within a paragraph or list.

    #688036
    Samuel

    Amazing, thank you very much!

    #688055
    David
    Staff
    Customer Support

    Glad i could be of help.

    #709646
    Eva

    Hi, I have tried this, and it works as long as I am in the customizer mode. I leave the customizer… no underlining. How can this be possible?! I have tried various options, same thing every time…
    Any idea?

    Thanks,
    Eva

    #709650
    Leo
    Staff
    Customer Support

    Usually when something works in customizer preview and not on live site, it’s a caching issue.

    Can you link me to the page with the links in question?

    Feel free to open a new topic and use the private URL field as well.

    Let me know ๐Ÿ™‚

    #709652
    Eva

    Hey Leo,
    It’s the same site as the other issue that you just resolved for me ๐Ÿ™‚
    I just tried another browser… no luck. So probably no caching issue…

    Thanks!

    #709655
    Leo
    Staff
    Customer Support

    I’m not seeing a link (on the home page at least).

    Might be best to start a new topic anyways and we will sort it out ๐Ÿ™‚

    #709656
    Eva

    Ok, just one last try before I open another topic. On the home page there is a link in the last sentence: Lees hier hoe ik je daarbij kan helpen.
    This is who I would like to underline (dotted) the links ๐Ÿ™‚

    #709666
    Leo
    Staff
    Customer Support

    I’m not seeing David’s CSS being added.

    New topic would be the best ๐Ÿ™‚

    #710853
    Eva

    Hi Leo, sorry for the delay…
    I will start a new topic now.

    #710860
    Eva

    The CSS was there, but not in the right way, I guess. Just added it again and now it’s working fine!
    Thank you!!

    #711258
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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