Re: Removing frame border when using HTML <OBJECT> tag to embed a child HTML document
Can't be done in IE8 or below; the object frame will not respond to CSS applied to either the host document or the source document. That's the reason why web developers are still using <embed> for things like SVG graphics instead of <object>, and one of the reasons why <iframe> is still in heavy rotation even when dynamic client-side content changes are not required.
---------- Post added at 02:19 AM ---------- Previous post was at 02:10 AM ----------
Additional: as far as I've been able to determine, the reason you can't do it in IE is because MS uses an OS-native widget to display <object>s. It's the same reason why <select> elements will poke through any overlay <div>s. In this case, IE seems to be inserting itself (or its control variant) as an ActiveX control on the page in response to the object type.
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)