Sign in to follow this  

[web] Scrollbars appearing when they're not suppose to

This topic is 4385 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have an IFRAME, with scrolling set to auto..but for some reason..it's showing the horizontal scroll bar..although it's not needed (the vertical scroll bar is). This error is only in IE..is there a way I can fix this? (Firefox shows it perfectly) Thanks ArchG

Share this post


Link to post
Share on other sites
In short: IE messes up even the simplest calculations. When calculating the width for the page contained in an iframe most browsers use the width of the iframe's viewable area. IE however decides the page should have a width equal to that of the entire iframe, which of course causes scrollbars to appear.

Possible solutions:
- Set iframe's scrolling attribute to "yes"
- Set the overflow-x style of the page's html element to hidden
- Set the display style of the page's body element to inline

Share this post


Link to post
Share on other sites

This topic is 4385 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this