I find it fascinating how important Facebook has become in todays society . The Facebook like button is an important innovation that it deserves to be. More and more people are turning towards facebook and creating pages to share their business and build a closer relationship with Facebook users . The idea behind ‘like’ marketing is simple. The more the likes, the better you are doing . Facebook also provides a nifty little likebox widget that can be customized to display your facebook page current fans on any webpage, but the widget comes with an ugly black/blue border that cannot be overridden with css because it is in a Facebook iframe.
The fix :
This tutorial will show you a trick to hide the border around the Facebook Like Box. It takes advantage of negative margins and the overflow property of CSS to hide the border of the Facebook Like Box under a container div.
This is what the Facebook Like Box looks if you apply the plugin code directly to your site without any modification. Note that I set “header” to false so it does not display the text “Find us on Facebook”.
First, wrap the plugin code in two divs. Here I called the outer div “facebook-like-box” and the inner div “inner”.
<!– Facebook Plugin Code —>
<!– End Facebook Plugin Code –>
Next, increase the height and width of the Facebook Like Box by four pixels. In this example, I have increased the height and width from 250 pixels to 254 pixels. This will increase the size of the Like Box by two pixels in every direction.
Finally, update your style sheet with the following modifications. Set the width and the height of the outer div to the original width and height, not the increased width and height from the step above. In this example, the original plugin code specified a width and height of 250 pixels. This will hide the Like Box border under the outer div.
position: relative; /* For IE7 Compatibility */
margin: -2px 0 0 -2px;
Once the aforementioned modifications are applied, you should end up with something that looks like this.
You can adjust the width and height according the space where you want to place the box. There could be other approaches too.
I feel excited when I read your title post cos I know how to create facebook fan page like box. My problem is
I don’t know how to customized it and make a little changes. Glad found your site..thnak much!!
Nice tutorial on superb topic. Few days ago I tried to remove facebook fan page like box border. But, I failed. Now, I can do this. Thanks for share.
Nice tutorial for facebook users who wants to customize their facebook like box
Facebook also provides a nifty little likebox widget that can be customized to display your facebook page current fans on any webpage, but the widget comes with an ugly black/blue border that cannot be overridden with css because it is in a Facebook iframe.
Nice tips. what I do is I copy background color code and apply it as facebook border so when the like box embed on your sidebar you will not see any border 🙂 he he check out my blog.
It is very important tips for me. Because i am trying to learn facebook page design. Now i am going to use your tips. Thanks
Wow I had no idea you could do that… good to know! I’m definitely going to have to try that out. Thanks for sharing!
very effective information. I’m going to do it on my facebook page.
Great tip, we will have to try this on our next project. Thanks again!