[ Solved – 11 Answers ] HTML – Remove border from IFrame
How to remove the border from an iframe embedded in web app? An example of the iframe is:
[ad type=”banner”]Add the frameBorder attribute (note the capital ‘B’).
So it would look like:
You have to set the frameBorder attribute with a capital B.
In addition to adding the frameBorder attribute you might want to consider setting the scrolling attribute to “no” to prevent scrollbars from appearing.
Using the “border” CSS attribute works as well:
Note CSS border property does not achieve the desired results in IE6, 7 or 8.
For browser specific issues also add frameborder=”0″ hspace=”0″ vspace=”0″ marginheight=”0″ marginwidth=”0″ according to Dreamweaver:
[ad type=”banner”]If the doctype of the page we are placing the iframe on is HTML5 then we can use the seamless attribute like:
Add the frameBorder attribute (Capital ‘B’).
Add the frameBorder attribute. It’s case-sensitive
Add the frameBorder attribute below to the iFrame tag
In your stylesheet add
[ad type=”banner”]Style property can be used For HTML5 if we want to remove the border of the frame or anything that can use the style property. as given below
