Facebook Like-Box min-width changed to 292px. Any way to change this behavior?

给你一囗甜甜゛ 提交于 2019-12-04 11:36:51

I don't know why Facebook has done it, but you can easily set your own width using CSS:

.fb-like-box span, .fb-like-box iframe {
    width: 220px !important;
}

There is a data-width attribute of the div to manage the width.

The below code is working absolutely fine.

<div class="fb-like-box" data-width='260' data-href="https://www.facebook.com/FacebookDevelopers" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!