Results 1 to 7 of 7
  1. #1
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,445
    Thanks
    66
    Thanked 30 Times in 28 Posts

    Google +1 code help

    Hi guys, after a bit of help here, see this page > Printing of Business Cards, Letterheads, Flyers - Stationery Direct

    How do I make the gap below the google +1 button the same as the gap above the Facebook like button? I tried adding 'padding-bottom:' to the google code but it didn't do anything, if that was the right way to do it? Out of my depth here, anyone?

    <!-- Facebook -->
    <iframesrc="http://www.facebook.com/plugins/like.php?app_id=207088675993575&amp;href=http%3A%2 F%2Fwww.stationery-direct.co.uk&amp;send=false&amp;layout=button_coun t&amp;width=169&amp;show_faces=false&amp;action=re commend&amp;colorscheme=light&amp;font=tahoma&amp; height=21"scrolling="no"frameborder="0"style="border:none; overflow:hidden; width:169px; height:30px;"></iframe>
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusonesize="small"annotation="inline"width="169"href="http://www.stationery-direct.co.uk"></g:plusone>
    <!-- Place this render call where appropriate -->
    <scripttype="text/javascript">
    window.___gcfg = {lang: 'en-GB'};
    (
    function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src =
    'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>

  2. #2
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,445
    Thanks
    66
    Thanked 30 Times in 28 Posts
    Do I put it all in a div and specify something in the CSS?

  3. #3
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by Boss Hog View Post
    Do I put it all in a div and specify something in the CSS?
    That's what I'd do I think. Use a class and wrap both up in a div with the class applied and then specify a bottom margin in your CSS.

  4. #4
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,445
    Thanks
    66
    Thanked 30 Times in 28 Posts
    Could you give me an example of how to do it?

  5. #5
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    HTML:

    Code:
    <div class="social">
    <!-- Facebook -->
    <iframesrc="http://www.facebook.com/plugins/like.php?app_id=207088675993575&amp;href=http%3A%2 F%2Fwww.stationery-direct.co.uk&amp;send=false&amp;layout=button_coun t&amp;width=169&amp;show_faces=false&amp;action=re commend&amp;colorscheme=light&amp;font=tahoma&amp; height=21"scrolling="no"frameborder="0"style="border:none; overflow:hidden; width:169px; height:30px;"></iframe>
    </div>
    <div class="social">
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusonesize="small"annotation="inline"width="169"href="http://www.stationery-direct.co.uk"></g:plusone>
    <!-- Place this render call where appropriate -->
    <scripttype="text/javascript">
    window.___gcfg = {lang: 'en-GB'};
    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    </div>
    CSS

    Code:
    .social {margin: 0 0 10px 0;}
    Although there is a caveat round this that iframes are a tad unpredictable as you have no control over the content as such. Perhaps have a play with margins etc until it looks right.

  6. #6
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,445
    Thanks
    66
    Thanked 30 Times in 28 Posts
    Worked a treat, thanks Toby


    Cheers

    Damon

  7. #7
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    You are welcome

Similar Threads

  1. Do you still adapt your code for ..
    By DaveGears86 in forum Website Coding & Programming Forum:
    Replies: 7
    Last Post: 01-24-2012, 02:01 PM
  2. Code Help
    By Boss Hog in forum Website Coding & Programming Forum:
    Replies: 9
    Last Post: 02-06-2011, 03:17 PM
  3. Can't code Won't code!
    By Conway in forum Website Design Forum:
    Replies: 6
    Last Post: 06-07-2010, 04:05 PM
  4. q & a html code help
    By Pigeondave in forum Website Coding & Programming Forum:
    Replies: 0
    Last Post: 09-19-2009, 10:05 AM
  5. Magic Code
    By Boss Hog in forum Chill Out Forum:
    Replies: 0
    Last Post: 08-18-2008, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •