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.