Forum Moderators: open

Message Too Old, No Replies

Horizontal scroll problem with IFRAME

         

Atiq

1:51 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Hello every one!

I am using IFRAM in my page to show some pages.
Some pages fits fine in the frame and no horizental bar is shown (vertical scroll bar is visible for vertically longer pages but that is no problem)

But the pages which are wider then the IFRAME force a horizental scroll bar on IFRMAE.

I don't want the horizental scroll bar no matter pages are wider or not.

I have searched alot but found no solution.

Any help would be deeply appreciated.

Thanks and Regards,
Atiq

BlobFisk

9:32 am on Feb 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Atiq!

This is the natual behaviour for an iFrame. If it has been assigned a width of (say) 100px and the content in it is 200px wide, then it will scroll horizontally.

You can stop ALL scrolling by using the CSS overflow property, but that works on both horizontal and vertical scrollbars.

There is an IE only option which is overflow-x, which is definied here [msdn.microsoft.com] on MSDN. By seeing that to hidden you should be able to achieve, on IE only, what you are asking for.

HTH