How to add social media buttons

Asked

Viewed 467 times

0

How can I implement social networking buttons in my application(Facebook, Linkdin, Youtube) HTML/CSS/JavaScript ? Most of the examples I found are in PHP

  • you want to generate login buttons?

  • @Luizsantos No. Example, the user clicks on determiando button and takes up to the company profile of each social network

1 answer

2


You can control the destination of the click through the attribute href 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.

  • Maybe just to be clear, for us href the social network link /perfil/MagicHat?

  • 1

    @Jeffersonquesado I have no profile on the face:(..... but knows the maxim "Do not give the fish, teach to fish"...?

  • I was referring to the structure of the link, it didn’t have to be real ;-) And yes, lately I’ve gotten used to giving the fish fried and without spine

  • 1

    Ah.. I try to run from this, yet still we end up doing... But it is not good for those who want to learn... To tell you the truth I did not understand the issue right and my interpreter has the defect to take everything literally, being: "the user clicks on determiando button and takes up the company profile of each social network "I don’t know exactly what you mean...

Browser other questions tagged

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