Misalignment of Facebook & Twitter buttons

前端 未结 18 1431
你的背包
你的背包 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:57

    You can easily solve this issue with CSS:

    iframe { float: left; padding-right: 10px; }

    EIDT: If you want them to be centered, simply wrap them in a div (which they already are wrapped with, give that div a class or an ID. For example, let's give it a class of twfb for twitter/facebook. Now in the CSS we'll declare a width and automatic margins as so:

    .twfb { width: 120px; margin: 0 auto; }

    EDIT 2: To remove the large margin from the facebook, simply add this to your CSS:

    .fb_edge_widget_with_comment { margin-left: -26ppx; }

    That should align them nice and close to each other.

    That should do it!

    Good luck

提交回复
热议问题