skip to Main Content

I am developing a website.
When I click on a link, it turns blue.
I don’t want the color to change and I want all links to retain their original color. I have set all tags in css to transparent, but to no avail.

How do I prevent the link from turning blue using CSS or HTML?

2

Answers


  1. It gets visited color when you click on your logo and text. You can solve this problem by declaring the visited color of the hyperlink.

    Example:

    a:visited {
    color: red;
    }
    
    Login or Signup to reply.
  2. Simple css fix right here 😉

    a, a:visited {
      color: inherit; /* or use a specific color like 'black' or '#333' */
      text-decoration: none; /* optional, to remove the underline */
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search