View Full Version : Frame without thick border
16 Oct 2009, 10:52 AM
With setFrame(true), ContentPanel always seem to have a thick frame (border, padding, margin, spacing or whatever you call it). Is there an easy way to eliminate the extra spacing? I still want the round corner and the 1px border, but I want the stuff inside to fill the panel completely without the extra spacing.
16 Oct 2009, 12:21 PM
This is a HTML issue. Basically, there are 2 elements you have to take into account in order to remove or change the borders in an IFRAME:
- The Iframe element itself
- The <body> tag in the embed page (the page you include in the SRC element of the IFrame).
<iframe .... style="border:0;">
<body ... style="margin:0;">
you might as well use a CSS and classes or #id to set the styles to set the borders the way you want.
That will do for all browsers except IE. For IE you need to:
<iframe frameborder="0" ... >
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.