This is great as I am currently doing something like this for a wordpress site I am building. I want all the inline links in the paragraphs to have a hover effect. The only issue im having is targeting the link and not other links such as in buttons etc. Seems like using :not() is the way to go. Any thoughts?
You could go as simple as targeting all anchors within paragraphs? p a {} Or if you’re trying to target external links specifically, you could go for this option (credit to David Walsh) davidwalsh.name/external-links-css
This piece of content is so valuable, thank you so much for this!
very nice
thank you so much
Glad it helped!
Yeah great. I'm learning CSS
Thank you its not working in elementor... hot to fix that ?
Hi, how did you get the pseudo icon?
This is great as I am currently doing something like this for a wordpress site I am building. I want all the inline links in the paragraphs to have a hover effect. The only issue im having is targeting the link and not other links such as in buttons etc. Seems like using :not() is the way to go. Any thoughts?
You could go as simple as targeting all anchors within paragraphs? p a {}
Or if you’re trying to target external links specifically, you could go for this option (credit to David Walsh) davidwalsh.name/external-links-css
@@envatotuts thanks for the reply. Yes I did indeed go with p a {}. No idea why that didnt enter my brain before lol.