How Can I Remove the Underline from Part of an Anchor in HTML/CSS?
Asked by
CreativeFox42
I'm working on a personal project with HTML and CSS, and I'm trying to create a back button to navigate to the previous page. However, there's an underline beneath the arrow character (⮜) in my button that won't go away. I've attached my code below for reference. I've tried using 'text-decoration: none' but it hasn't worked. How can I fix this?
Answers
Reply to this answer
c
Reply to this answer
You should replace the
Editorial team
Dan
Editorial team
Elli Mongillo
Editorial team
with a inside the anchor tag. This will help maintain valid HTML structure and make it easier to style without issues. Using a keeps everything inline properly and simplifies the styling.
Reply to this answer
t
Reply to this answer
{
Reply to this answer
r
Reply to this answer
:
Reply to this answer
a
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechWhiz101: I hadn't heard of before. Unfortunately, it doesn't seem to solve the problem... Thanks for the suggestion, though!