Archived topic
Link with Shadow
3 replies · Started by Denise on November 26, 2022
Hi,
I followed the instructions given on this topic: https://generatepress.com/forums/topic/link-underline-and-color-change/page/2/#post-2435492
But it affected how another link CCS related class is working.
This additional CCS class is (.mylinks a) to give a different color of the text underlined.
However, now that I have added this new box-shadow, it seems that it does not matter that I’ve added the class to the link, is not working.
I tried to be more specific using .mylinks li a, .mylinks p a, and works.
Do I have to specify every single place where the link could be placed?
Is there a way to make it work like before, just indicating the selector a?
Please take a look on this article where I have that class on paragraphs, lists and under a block.
Thanks a lot for your help!
Denise
Hi there,
to cover all the bases try:
#page .entry-content .mylinks a
This should make it more specific than the other CSS.
Worked perfectly! ❤
Thanks for your prompt response David!
Denise
Glad to be of help!