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

后端 未结 29 1513
粉色の甜心
粉色の甜心 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 18:57

    Looks like this post is not very old but the answer wasn't working for me. I had to add this to my stylesheet...

    #fbcomments, .fb_iframe_widget, .fb_iframe_widget[style], .fb_iframe_widget iframe[style], #fbcomments iframe[style] {width: 100% !important;}
    

    The .fb_iframe_widget and .fb_iframe_widget[style] both seemed to be important.

提交回复
热议问题