Charliehawkins Posted March 6, 2022 Share Posted March 6, 2022 Hi, I'd like to make all the links within my website show an underline when users hover over the link. I don't want an active underline - only when they hover. Does anyone know how to do this? thanks Link to comment
Jia Posted March 6, 2022 Share Posted March 6, 2022 4 hours ago, Charliehawkins said: Hi, I'd like to make all the links within my website show an underline when users hover over the link. I don't want an active underline - only when they hover. Does anyone know how to do this? thanks Hi, add this code to custom css. Let me know how it goes 🙂 h1 a, h2 a, h3 a, p a { text-decoration: none !important; } h1 a:hover, h2 a:hover, h3 a:hover, p a:hover { text-decoration:underline; } Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio Link to comment
abbyleebonny Posted March 29, 2022 Share Posted March 29, 2022 On 3/6/2022 at 8:47 PM, Jia said: Hi, add this code to custom css. Let me know how it goes 🙂 h1 a, h2 a, h3 a, p a { text-decoration: none !important; } h1 a:hover, h2 a:hover, h3 a:hover, p a:hover { text-decoration:underline; } Hi @Jia - I tried your code and while it removed the underline from links it doesn't have the underline when the mouse is hovered over the links. Do you have any suggestions? website: www.dekanstudios.com/home Link to comment
Jia Posted March 30, 2022 Share Posted March 30, 2022 8 hours ago, abbyleebonny said: Hi @Jia - I tried your code and while it removed the underline from links it doesn't have the underline when the mouse is hovered over the links. Do you have any suggestions? website: www.dekanstudios.com/home Let's try adding the !important tag, add this code: a:hover { text-decoration:underline; } Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio Link to comment
tkk Posted January 18, 2023 Share Posted January 18, 2023 I had the same issue with the code. I added the a:hover and still nothing Link to comment
tuanphan Posted January 19, 2023 Share Posted January 19, 2023 On 1/19/2023 at 3:37 AM, tkk said: I had the same issue with the code. I added the a:hover and still nothing What is your site url? We can check code easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Jenae Posted February 8, 2023 Share Posted February 8, 2023 Hi Guys! I figured it out. You have to add the !important to the hover line. Copy this code below and it will add the underline on hover. h1 a, h2 a, h3 a, p a { text-decoration: none !important; } h1 a:hover, h2 a:hover, h3 a:hover, p a:hover { text-decoration:underline !important; } The only thing I want to figure out is how to make the underline thinner because doing this code makes the underline quite thick. If anyone has that code to add in lmk Link to comment
tuanphan Posted February 11, 2023 Share Posted February 11, 2023 On 2/9/2023 at 5:01 AM, Jenae said: Hi Guys! I figured it out. You have to add the !important to the hover line. Copy this code below and it will add the underline on hover. h1 a, h2 a, h3 a, p a { text-decoration: none !important; } h1 a:hover, h2 a:hover, h3 a:hover, p a:hover { text-decoration:underline !important; } The only thing I want to figure out is how to make the underline thinner because doing this code makes the underline quite thick. If anyone has that code to add in lmk You can use this code h1 a, h2 a, h3 a, p a { text-decoration: none !important; } h1 a:hover, h2 a:hover, h3 a:hover, p a:hover { border-bottom: 1px solid currentColor; } sarawhite 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
threadsonline Posted January 31 Share Posted January 31 Use this code: NOTE: Replace 'FONTSTYLE' with the block ID you you're looking to target 😀 //Underline on hover FONTSTYLE a { text-decoration: none !important; } FONTSTYLE a:hover { text-decoration: underline !important; text-decoration-thickness: 1px !important; text-decoration-color: #FFDA00 !important; } Furmston 1 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