IhabKhiri Posted January 25 Share Posted January 25 I'm currently working on customizing the hyperlinks on my website, specifically within the paragraph texts and blog posts. My objective is to have all hyperlinks in underlined. To achieve this, I used the following CSS code: a { text-decoration: underline; } However, this code seems to be too broad, resulting in everything, including the blog titles in my blog's basic grid section, being underlined. I'm looking for a way to restrict the underlining to just the hyperlinks within the paragraph texts and blog posts. Could anyone guide me on how to modify my CSS code to achieve this specific effect? For reference, my website is: https://www.workplaceconsultant.com Any help or tips would be greatly appreciated. Thank you in advance! Best regards, Ihab Khiri www.workplaceconsultant.com Link to comment
Solution abc Posted January 25 Solution Share Posted January 25 Use p a instead of just 'a' Link to comment
IhabKhiri Posted January 25 Author Share Posted January 25 2 hours ago, abc said: Use p a instead of just 'a' Thank you, this worked! abc 1 Best regards, Ihab Khiri www.workplaceconsultant.com Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment