Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:22 PM
Kirk
Guest
 
Posts: n/a
Default <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?
  #2  
Old July 20th, 2005, 05:24 PM
Wired Earp
Guest
 
Posts: n/a
Default Re: <IFRAME> 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles