Remove border from IFrame

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

<iframe src="https://stackoverflow.com/questions/65034/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.

26 s
26

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

So it would look like:

<iframe src="https://stackoverflow.com/questions/65034/myURL" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>

Leave a Comment