Hey,
Can anybody here tell me why my link to facebook account is not working ?
…
<button style="background-color:#3C599F;"class=“btn icon” >
Did you put an anchor tag that linked to your profile?
<a href="https://putyourfacebookurlhere"></a>
yes I have used it. Its not working.
<button style="background-color:#3C599F;"class="btn icon" ><a href="https://www.facebook.com/Ssangeetaa" target="_blank"></a><i class="fa fa-facebook"></i></button>
If you nest an <a>
tag inside a <button>
, chances are it won’t work as you’d expect.
However it’s easy to make <a>
s look like <button>
s. You might do with something like this
<a class="btn icon" href="https://..." target="_blank"><i class="fa fa-facebook"></i></a>
don’t forget to include the font-awesome css… otherwise, you’d have nothing inside your button.
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<a href="https://www.facebook.com/Ssangeetaa" target="_blank" class="btn btn-primary"><span class="fa fa-facebook"></span></a>
Output: