Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align Facebook and Tweet buttons?

The Facebook and Tweet buttons on our home page are vertically misaligned, and we're confused why. We can top align the two buttons if we use Firebug and remove the height for the Tweet button. However, the height is set dynamically, and inlined, from a Twitter script. We can't seem to override the height value.

Here's the home page: http://www.panabee.com

Are we doing something wrong in the CSS? Or is there a parameter we need to set in the Tweet button to override the height value?

Our only other option is to resort to the Twitter iFrame for the Tweet button, which we prefer not to do.

Thanks!

like image 320
Crashalot Avatar asked Mar 09 '11 21:03

Crashalot


2 Answers

Simply add this CSS: .twitter-share-button { vertical-align:top }.

like image 126
thirtydot Avatar answered Nov 03 '22 14:11

thirtydot


Just add:

height:63px; to the class of the FB iFrame in CSS: enter image description here

like image 6
Myles Gray Avatar answered Nov 03 '22 15:11

Myles Gray