The page contains two buttons, from twitter and from facebook.
What I'm observing in Firefox 3.5.15 is:
- While the page is loading, the buttons are more or less aligned (I mean their bottom sides)
- 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.
- 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?
Then back to the first solution here, a bit.
"top" is also ok.
This is my solution for the joomla plugin (see http://www.compago.it/software/41-compago-software/347-facebook-twitter-google1-plugin-for-joomla.html):
I solved this by taking Guðmundur Þór Magnússon's answer and adding
margin-bottom: -2px !important;
to the CSS rule:I just enclosed all my icons in a div and then set the line height on that div so that they all lined up (since they are all the same height and some are aligned with the top and some the bottom)
Then the CSS
I fixed this by adding
position: relative; top: 4px;
to thestyle
attribute of the facebook iframe.So, it looks like this:
An imperfect solution, but it works.
I can't tell you what's going on in there and I don't even want to think about what
< fb:headache >
does there, but you should be able to resolve this issue by floating the iframe for the twitter button left and adding some margin-right to get the original look back.It's a little hackish, but should do.
UPDATE
This worked for me as a charm: