skip to Main Content

im trying to make a button in my personal website but its not working, it should take you to facebook but its not working idk why.

<li style="--clr:#c32aa3;margin-top: -78px;">
          <a href="https://www.facebook.com/">
            <i class="fa-brands fa-linkedin"></i>
          </a>
      </li>

i was trying to make it work but its not working at all, i already tried changing the link but nothing happened!

2

Answers


  1. Try putting the link inside the list item instead:

    <li>
        <a href="https://www.freecodecamp.org/" target="_blank">freeCodeCamp</a>
    </li>
    
    Login or Signup to reply.
  2. I think you shoud remove your negative margin
    That is moving the actual link to another part and you are not clicking it

    This is an css issue, maybe there are other styles causing the issue

    If you provide a complete example in plunkr or jsfiddle I can help you more

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search