Border around iframe

Setting a border around an iframe creates a padding-right and padding-bottom twice as large as the border.
This bug occurs in MSIE 6 in Strict Mode. It seems the iframe's document width is computed according to the traditional box model, while the iframe itself is computed according to the W3C box model.

Test page Workaround is not included
Reported by: G�rard Talbot..

Explorer 5-6 Windows | Reported on 3 June 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by Ingo Chao on 26 June 2005 | Permalink

Apply _overflow:hidden (here the underscore hack is used to hife it from the others) to the iframe.
We discussed the bug in this css-d thread: