By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,967 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,967 IT Pros & Developers. It's quick & easy.

<IFRAME> Scrolling

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.