Misalignment of Facebook & Twitter buttons

前端 未结 18 1446
你的背包
你的背包 2021-02-01 13:18

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
18条回答
  •  悲哀的现实
    2021-02-01 13:50

    I know there have been many answers, but since I struggled with this and none here worked for me, I thought I'd add my 2 cents... As has been mentioned, the span has a vertical-align: bottom; and you need to override this. I must say, even though it runs counter to CSS theory, it would really be nice if you could simply "turn off" a CSS rule like this one. I mean, what the hell FB? Icons working one day; but not the next. That is the stupidest thing I've ever heard of, ever.

    Anyway...

    .fb-like span {
        /* baseline is default, so it negates bottom*/
        vertical-align: baseline !important;
    }
    

    ...did it for me.

提交回复
热议问题