How Can I Remove the Underline from Part of an Anchor in HTML/CSS?

0
16
Asked By CreativeFox42 On

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?

8 Answers

Answered By On

a

Answered By Elli Mongillo On

:

Answered By On

r

Answered By Dan On

{

Answered By On

t

Answered By CodeNinja88 On

You should replace the

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.

TechWhiz101 -

I hadn't heard of before. Unfortunately, it doesn't seem to solve the problem... Thanks for the suggestion, though!

Answered By Keven Krok On

c

Answered By On

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.