Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2012 20:37
Show Gist options
  • Save smeranda/2571173 to your computer and use it in GitHub Desktop.
Save smeranda/2571173 to your computer and use it in GitHub Desktop.
Flexible width layout for Facebook Like Box/Activity Stream to use in Responsive Designs
Make the Facebook Like box responsive (fluid width)
/* 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;
Copy link

emblisha commented Sep 2, 2014

thanks soo much it works great

Copy link


Copy link

thethao commented Sep 20, 2014


Copy link

I've just resolved a similar issue using the CSS from - however full width page responsive still leaves half the page blank on a 1600px wide monitor :(

Copy link

Thanks a lot!! it works perfectly for me!

Copy link

Thanks, copy -> paste in css file and done...

Copy link

Nashu99 commented Dec 13, 2014

Thank you, works perfectly

Happy New Year 2015 Wallpapers

Copy link

ypawany commented Jan 17, 2015

Thank you so much, it's working perfectly.

Copy link

Do not work for me. Could you reiview it?
many thanks

Copy link

Thanks smeranda:

I've seen this one on but didn't find coding, Now you really help me with finding this code.

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