How to remove the iframe border


When using iframes in your webpage, the standard markup will be with borders. You can however turn them off completely with just a few pieces of html code.

The following way ensures borders from iframes will be gone.

Most HTML elements work with the standard border attribute. unfortunatly iframes have 3D borders which can't be removed with the border attribute.

Your iframe will probably look something like this :
<iframe></iframe>
We need to add two attributes called frameborder and frameborder :
<iframe frameborder="0" frameborder="no"></iframe>




Posted by James on 2009-08-29 in the category " html "