Skip to content

Instantly share code, notes, and snippets.

@alasomlira
Created December 18, 2019 18:24
Show Gist options
  • Save alasomlira/5f6f221bd1839c5b849be86060b83d4d to your computer and use it in GitHub Desktop.
Save alasomlira/5f6f221bd1839c5b849be86060b83d4d to your computer and use it in GitHub Desktop.
Whatsapp-floating-button
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<a href="https://api.whatsapp.com/send?phone=51955081075&text=Hola%21%20Quisiera%20m%C3%A1s%20informaci%C3%B3n%20sobre%20Varela%202." class="float" target="_blank">
<i class="fa fa-whatsapp my-float"></i>
</a>
.float{
position:fixed;
width:60px;
height:60px;
bottom:40px;
right:40px;
background-color:#25d366;
color:#FFF;
border-radius:50px;
text-align:center;
font-size:30px;
box-shadow: 2px 2px 3px #999;
z-index:100;
}
.my-float{
margin-top:16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment