- This topic has 12 replies, 4 voices, and was last updated 7 years, 5 months ago by
Leo.
-
AuthorPosts
-
September 27, 2018 at 7:22 am #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?
September 27, 2018 at 8:57 am #687876David
StaffCustomer SupportHi 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.
September 27, 2018 at 12:34 pm #688036Samuel
Amazing, thank you very much!
September 27, 2018 at 1:13 pm #688055David
StaffCustomer SupportGlad i could be of help.
October 24, 2018 at 2:48 pm #709646Eva
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,
EvaOctober 24, 2018 at 2:51 pm #709650Leo
StaffCustomer SupportUsually 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 ๐
October 24, 2018 at 2:57 pm #709652Eva
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!
October 24, 2018 at 3:02 pm #709655Leo
StaffCustomer SupportI’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 ๐
October 24, 2018 at 3:10 pm #709656Eva
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 ๐October 24, 2018 at 3:37 pm #709666Leo
StaffCustomer SupportI’m not seeing David’s CSS being added.
New topic would be the best ๐
October 26, 2018 at 3:13 am #710853Eva
Hi Leo, sorry for the delay…
I will start a new topic now.October 26, 2018 at 3:21 am #710860Eva
The CSS was there, but not in the right way, I guess. Just added it again and now it’s working fine!
Thank you!!October 26, 2018 at 9:43 am #711258Leo
StaffCustomer SupportNo problem ๐
-
AuthorPosts
- You must be logged in to reply to this topic.