• support@answerspoint.com

Remove border from IFrame

2314

How do I remove the border from an iframe embedded in my web app? An example of the iframeis:

<IFRAME src="myURL" width="300" height="300">Browser not compatible. </IFRAME>

I would like the transition from the content on my page to the contents of the iframe to be seamless, assuming the background colors are consistent. The target browser is IE6 only and unfortunately solutions for others will not help.

2Answer


0

Add the frameBorder attribute (note the capital ‘B’).

So it would look like:

<iframe src="myURL" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>
  • answered 8 years ago
  • Sandy Hook

0

After going mad trying to remove the border in IE7, I found that the frameBorder attribute is case sensitive.

You have to set the frameBorder attribute with a capital B.

<iframe frameBorder="0" ></iframe>
  • answered 8 years ago
  • G John

Your Answer

    Facebook Share        
       
  • asked 9 years ago
  • viewed 2314 times
  • active 9 years ago

Best Rated Questions