Forum Moderators: open

Message Too Old, No Replies

iFrame and IE

         

BootySlap

7:37 am on Apr 24, 2003 (gmt 0)

10+ Year Member



Why does IE treat the iFrame as if it always has a scrollbar down the side unless u set "scrollbar=no"?

I want to center text in the iframe but it always leaves a little gap the width of a scrollbar on the right hand side. Even when I set scrollbar=auto it still does this.

Opera and NN work ok.

Is there a workaround for this without actually turning it off altogether?

BootySlap

8:12 am on Apr 24, 2003 (gmt 0)

10+ Year Member



Also dont know if anyone realised but NN doesnt allow scrolling if position: absolute; is set on any of its parent containers.

Any fix for this?

ricfink

5:57 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



The answer lies in the CSS overflow property.
I'm assuming you have to set the overflow property to hidden for the iframe element itself in the parent page.

If that doesn't work, set it for the body element in the page that's displaying in the iframe.

Also be aware that IE, unlike OPera and Moz, has overflow-x and overflow-y properties in addition to the overflow property in the W3C CSS rec.