Is it possible to set a fluid width for Facebook's social plugins?

后端 未结 29 1507
粉色の甜心
粉色の甜心 2020-12-22 18:52

I\'m developing a site around the \"responsive design\" concept, but the facebook social plugins are static width and \"break\" the layout when it\'s re-sized.

Using

29条回答
  •  臣服心动
    2020-12-22 19:12

    I managed to make it work by using this code:

    .fb-like, .fb-like span, .fb-like.fb_iframe_widget span iframe {
        width: 100% !important;
    
    }
    

    because in my html file I have this:

    Tip: You should change your css depending of the div class.

提交回复
热议问题