Forum Moderators: not2easy

Message Too Old, No Replies

Iframe sizing and scrollbars

Content area too large in IE

         

mafro

10:21 am on Oct 18, 2005 (gmt 0)

10+ Year Member



Hello all, its been a while since i have posted on these forums, but ive got an annoying problem that seems to be CSS related.

First take a look at this link
[pixelabuse.co.uk...]

The iframe in the page contains only an image which is less wide than the iframe, yet the horizontal scrollbar still shows.

Inserting the button labelled Expand and setting it right:0px shows that the width of the iframe's src file is larger than it should be. Any ideas on this? Surely the width of the HTML page shown in the iframe should be the width of the image it contains?

This is an IE only site so dont worry about cross-browser - as usual the code is fine in Firefox!

Thanks
mafro

bubblebug

1:28 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



I think the browser draws the window then takes it's width and then adds the content. It does not take the scrollbars into account initially as they are added later.

Putting the content into a div with a width set to 95% should fix it.

I think this should work. I am not 100% that my explaination of the browser issue is correct but that should fix it.