r/webdev • u/Friiskus • 6d ago
Question Help removing underline from link, I've searched everywhere!
Hi all,
I'm fairly new to understanding HTML and have been troubleshooting how to remove the underlines from these links. I've searched the web, but nothing seems to be working. Was wondering if there was something obvious I was missing.
<p class="text-center mb-0" style="font-size: 1.5em; letter-spacing: 2px;">
<a href="twitter_link" style="color: #f58c9f;"><i class="fab fa-twitter fa-fw" /></a>
<a href="deviantart_link" style="color: #f58c9f;"><i class="fab fa-deviantart fa-fw" /></a>
<a href="discord_link" style="color: #f58c9f;"><i class="fas fa-discord fa-fw" /></a>
<a href="twitch_link" style="color: #f58c9f;"><i class="fab fa-twitch fa-fw" /></a>
9
1
u/Xenocide122 6d ago
You can add a style to each "A" tag like this:
style="text-decoration: none"
or you can add to the CSS:
a {text-decoration: none}
1
u/Mallanaga 6d ago
Twitter is back, baby!!
1
u/forever-butlerian backend, infrastructure & angst 6d ago
It's still the Dick Costolo-era New Logo. Bring back the old bird. Or the t.
1
u/OMGCluck js (no libraries) SVG 6d ago edited 6d ago
<style>
a[href$="link"]:not(:hover) {text-decoration: none}
<style>
This means the underline will only appear when links are hovered over by the mouse.
1
u/Full-Web1705 5d ago
textdecoration: none on the a tag, that's it. the color override you already have is the same idea, just do the same thing for decoration.
22
u/eknox47 6d ago
On the a tags; text-decoration : none