Facebook share window when you “Like” a page getting cutoff

两盒软妹~` 提交于 2019-12-06 13:37:17

I haven't seen anything that indicates that that's configurable through the FB api, but I do believe this should work:

.fb-like {
    height: 20px;  // I think that's the button height, you might need to adjust
    overflow: hidden;
}

The comment box will still get loaded, it'll just be hidden. No idea if any sort of complications might arise there, though I'd doubt it.

Ok, got it to work. I removed the class

.fb-like iframe {
    width: 290px !important;
}

I think that FB box gets cutted because some parent element has "overflow: hidden" property.

This property may prevent FB box to exceed the size of that parent element.

This is pretty old but I'd like to add another answer on here that doesn't involve having an !important on our css. Which is--let's be honest--just doesn't look right.

.fb-like iframe { max-width:none; }
.fb-like span{
overflow:visible 
!important; 
width:450px !important; 
margin-right:-375px;
}

this should work.....good luck

Also, position:absolute; works on the holder element of the button.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!