How to add social buttons

0

How can I implement social networking buttons in my application ( FaceBook, LinkDin, YouTube ) HTML/CSS/JavaScript ? Most of the example I found are in PHP

    
asked by anonymous 09.10.2017 / 15:49

1 answer

2

You can control the click destination through the href attribute of an anchor:

<a href="https://pt-br.facebook.com/" style="display:table;padding:15px;background:url('http://www.iconninja.com/files/387/198/566/logo-social-fb-facebook-icon.svg') center;background-size: 30px 30px;
    background-repeat: no-repeat; "><a/><br>

<a href="https://br.linkedin.com/" style="display:table;padding:15px;background:url('http://cdn0.iconfinder.com/data/icons/social-flat-rounded-rects/512/linkedin-256.png') center;background-size: 30px 30px;
    background-repeat: no-repeat; "><a/><br>

<a href="https://www.youtube.com/" style="display:table;padding:15px;background:url('http://pbs.twimg.com/profile_images/902547949103841281/TmdokZcM_400x400.jpg') center;background-size: 30px 30px;
    background-repeat: no-repeat; "></a><br>

There are several ways to accomplish this, this is a simple example.

    
09.10.2017 / 17:22