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 badges2 Answers
Reset to default 7The 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条)