468,505 Members | 1,561 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

iFrame : suppress horizontal scroll bar


I'm using an iFrame to enclose another document. The iFrame width is
sufficient to hold the enclosed document. When the enclosed document has
more data and exceeds the height set for iFrame, both the scroll bars ,
horizontal and vertical appear. I want to avoid the horizontal scroll
bar. If I set the scrolling property to "no", then both the scroll bars
don't appear. I tried placing the iFrame tag inside div and setting the
scrolling property for iFrame to "no", even that didn't work.

Any help is appreciated



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
1 2590
You can try this CSS. It's IE only, and it doesn't always work
depending on what's being shown in the frame:
iframe {
overflow-x: hidden;
overflow-y: scroll;

You can also set the body of the content shown in the frame to 95% or
body {width:95%}

Have a look at this discussion:

- Jon

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Boaz Ben-Porat | last post: by
2 posts views Thread by Tina | last post: by
4 posts views Thread by André Nobre | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.