Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Misalignment of Facebook & Twitter buttons

The page contains two buttons, from twitter and from facebook.

What I'm observing in Firefox 3.5.15 is:

  1. While the page is loading, the buttons are more or less aligned (I mean their bottom sides)
  2. When the page is loaded, the facebook button moves a few pixels down, so that it's bottom side is lower than the bottom side of the twitter button.
  3. If I reload the page, the buttons are again aligned, and remain in this state even after the page is loaded.

Can someone please explain what's going on and how to fix it?

like image 995
Roman Cheplyaka Avatar asked Jan 22 '11 20:01

Roman Cheplyaka


1 Answers

Found the style that is pushing it down ..

If you use FireBug and scroll down to the iframe within the FB button.

This CSS style

.fb_iframe_widget iframe 

has this element

vertical-align: text-bottom; 

That's the one who's pushing it down.

You can override the CSS style with the following combo of selector and !important

.twitter-share-button[style] { vertical-align: text-bottom !important; } 
like image 133
Guðmundur Þór Magnússon Avatar answered Sep 17 '22 13:09

Guðmundur Þór Magnússon