<IFRAME> Scrolling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kirk

    <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?
  • Wired Earp

    #2
    Re: &lt;IFRAME&g t; Scrolling

    Kirk wrote:
    [color=blue]
    > Is it possible to stop horizontal scrolling whilst still maintaining
    > vertical scrolling within an <IFRAME> ?[/color]

    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

    Comment

    Working...