HREF Setting Button Color

Asked

Viewed 17 times

-1

I have a fa-icon basic and want to apply a link in it to redirect to facebook.

inserir a descrição da imagem aqui

but when I added the property href, it changed the color of the button leaving blue, as in the image below:

inserir a descrição da imagem aqui

my code:

<div>
    <div class="text-center">
     <a class="btn" href="https://www.facebook.com"><i class="fab fa-facebook-square"></i></a>
    </div>
</div>

I want to keep it white as default and insert the link. How can I resolve?

  • You’re wearing a bootstrap?

1 answer

0

The icon turns blue because it is an already visited link. To keep the button white, simply force the style of visited links in a css file or tag <style> in html itself:

a:visited {
    color: white;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.