469,290 Members | 1,898 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

<IFRAME> Scrolling

Is it possible to stop horizontal scrolling whilst still maintaining
vertical scrolling within an <IFRAME> ?

Within each page of my site I have an IFRAME for content. For some
pages there is very little information to display, thus the frame has
no scrolling bars, but on those where there is lots then the vertical
scrolling bar appears. However, on two of my pages the horizontal
scrolling bar has appeared also - why!?
I'm just displaying text in each, so why should some pages display
just the vertical bar (which is all I want) and others display both?

Can anyone shed any light on this and suggest a tag or some sort of
work-around?
Jul 20 '05 #1
1 6820
Kirk wrote:
Is it possible to stop horizontal scrolling whilst still maintaining
vertical scrolling within an <IFRAME> ?


Not really, but you can hack two important browsers by adding this to
iframe documents:
body { /* hacks to isolate explorer here */
overflow-x: hidden;

}
html[xmlns] { /* hacks to isolate mozilla here */
height: 100%;
overflow: -moz-scrollbars-vertical;
}

--
Wired Earp
Wunderbyte
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.