SOLVED Facebook widget breaks css in sidebar - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: SOLVED Facebook widget breaks css in sidebar (/showthread.php?tid=7144) |
Facebook widget breaks css in sidebar - dikkewalter - 2015-03-16 I am using the awesome Grill theme and I added the facebook widget code in the sidebar thru a component and when you are not logged into FB the css breaks. FB component: Code: <div id="fb-root"></div> sidebar: Code: <div class="advertisement"> I've tried setting the width in the FB component like data-width="100%" & data-width="300" with no difference. Any suggestions? RE: Facebook widget breaks css in sidebar - shawn_a - 2015-03-16 Does it use an iframe ? If not you can maybe set the wrap settings in css for whitespace and word break or search google i am sure someone has a solution already RE: Facebook widget breaks css in sidebar - dikkewalter - 2015-03-16 ok, I found some sort of solution but its more of a hack anyway: sidebar: Code: <div id="likebox-wrapper"><?php get_component('facebook'); ?></div> css file: Code: #likebox-wrapper * { Why the 103% you ask? because somehow 100% broke the FB internal padding or spacing and it looked ugly: 100%: 103%: 103% when not logged into FB: It'll have to do for now. |