Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.42 KB | None | 0 0
  1. <!--tecnica di allineamento dei pulsanti social-->
  2.  
  3. <div class="social">
  4.     <span class="twitter">
  5.         <a href="http://twitter.com/share" class="twitter-share-button" data-url="https://gist.github.com/thebigreason/1296097">Tweet</a>
  6.         <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  7.     </span>
  8.     <span class="google">
  9.         <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  10.         <g:plusone size="medium" href="https://gist.github.com/thebigreason/1296097"></g:plusone>
  11.     </span>
  12.     <span class="Facebook">
  13.         <iframe src="https://www.facebook.com/plugins/like.php?href=https://gist.github.com/thebigreason/1296097&amp;show_faces=false&amp;layout=button_count" scrolling="no" frameborder="0" style="height: 21px; width: 100px" allowTransparency="true"></iframe>
  14.     </span>
  15. </div>
  16.  
  17. <style>
  18. /* This gets Google to fall into place */
  19. .social {
  20.     font-size: 1px;
  21. }
  22.  
  23. /* This gets Facebook to fall into place */
  24. .social iframe {
  25.     vertical-align: middle;
  26. }
  27.  
  28. /* Set an optional width for your button wrappers */
  29. .social span {
  30.     display: inline-block;
  31.     width: 110px;
  32. }
  33.  
  34. /* Adjust the widths individually if you like */
  35. .social .google {
  36.     width: 75px;
  37. }
  38. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement