Misalignment of Facebook & Twitter buttons

前端 未结 18 1586
你的背包
你的背包 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 14:01

    The problem here is not the position, height or any other CSS, but rather the inline-block elements taking the wrong vertical alignment. The facebook element is vertial-align: top and the twitter element is vertical-align: bottom. Can all be fixed with just one line of CSS, but have to use the correct selector and !importantoverride JS applied inline styles.

    iframe[style] { /* to select the outer-most element of the twitter button */
        display: inline-block;
        vertical-align: bottom !important;
    } 
    

提交回复
热议问题