Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amitabhaghosh197/9412057 to your computer and use it in GitHub Desktop.
Save amitabhaghosh197/9412057 to your computer and use it in GitHub Desktop.
Facebook responsive css #facebook-css #css
/*
Make the Facebook Like box responsive (fluid width)
https://developers.facebook.com/docs/reference/plugins/like-box/
*/
/* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */
#fb-root {
display: none;
}
/* To fill the container and nothing else */
.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget span iframe[style] {
width: 100% !important;
}
@amitabhaghosh197
Copy link
Author

This is working perfect in my theme. Thanks for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment