javascript - Aligning Google Plus One and Facebook Like buttons properly - Stack Overflow

I am trying to put a Google Plus One and a Facebook Like button inline next to each other. For some rea

I am trying to put a Google Plus One and a Facebook Like button inline next to each other. For some reason the Facebook like button has a gap at the top which moves it down by a few pixels and makes it look funny.

Example: /

Is there a better way to align these two buttons?

I am trying to put a Google Plus One and a Facebook Like button inline next to each other. For some reason the Facebook like button has a gap at the top which moves it down by a few pixels and makes it look funny.

Example: http://jsfiddle/Chevex/yF4yz/

Is there a better way to align these two buttons?

Share Improve this question asked Apr 16, 2012 at 15:42 ChevCastChevCast 59.3k66 gold badges221 silver badges325 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

The problem is that the css styles are being loaded with the images. You can either set the css on your page ( remended ) or in javascript, do a document on load, and change the values once the images are populated.

Adding this css will move the facebook icon up 3 pixels, and to the left 25 pixels, next to the google icon.

div.fb-like
{
    top:-3px;
    left:-25px;
}

This seems to work in Chrome: http://jsfiddle/yF4yz/8/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745109289a4611750.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信