How to add Facebook like count button and Google one gadget side by side?

Discussion in 'HTML & Website Design' started by U-Tag, Jul 28, 2011.

  1. #1
    I try to add this Facebook like box and Google one gadget to my blog. I want use them side by side. I mean left hand side Facebook like box and its right hand side Google one gadget. But if i added following code to my blog, Facebook like box appear in top of the Google one. So how do i fix it. If i added <center> before these codes not work. So can you help me to add this code to my blog properly.

    <right>
    <iframe src="http://www.facebook.com/plugins/like.php?app_id=126353674118588&amp;href=https%3A%2F%2Fwww.facebook.com%2Fpc.tricks.tips.page&amp;send=false&amp;layout=box_count&amp;width=0&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=verdana&amp;height=90" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:90px;" allowtransparency="true"></iframe></right>
    
    <center><!-- Place this tag in your head or just before your close body tag -->
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusone size="tall"></g:plusone></center>
    
    Code (markup):

     
    Last edited: Jul 28, 2011
    U-Tag, Jul 28, 2011 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Hint: Floating containers.

    <div style="float:left">
     <iframe src="http://www.facebook.com/plugins/like.php?app_id=126353674118588&amp;href=https%3A%2F%2Fwww.facebook.com%2Fpc.tricks.tips.page&amp;send=false&amp;layout=box_count&amp;width=0&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=verdana&amp;height=90" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:90px;" allowtransparency="true"></iframe>
    </div>
    
    <div style="float:left">
    <!-- Place this tag in your head or just before your close body tag -->
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusone size="tall"></g:plusone>
    </div>
    Code (markup):
     
    Clive, Jul 28, 2011 IP
  3. U-Tag

    U-Tag Peon

    Messages:
    425
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot reply my thread.
    I added you provided code to my blog, but noting change, it also display as previous. Please look-at my screen shot.

    [​IMG]
     
    U-Tag, Jul 28, 2011 IP
  4. U-Tag

    U-Tag Peon

    Messages:
    425
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Then i modified it like this but nothing change.
     
    U-Tag, Jul 28, 2011 IP
  5. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #5
    Use that as a hint, your source code may need further adjustments. Can it be seen live somewhere on the web?
     
    Clive, Jul 28, 2011 IP
  6. U-Tag

    U-Tag Peon

    Messages:
    425
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok. Ill try it. :D
     
    U-Tag, Jul 29, 2011 IP