Thursday, 2 September 2010

Removing the 3D border on an iframe in IE

Something I came across worth remembering in future.

Internet explorer puts a 3D border on iframes... this is removed by adding a frameborder="0" on the element. This is not W3C compliant but is the only way to remove it in IE. Firefox and other browsers respect the border: none; in CSS.