Results 1 to 2 of 2

Thread: controlling scroll while using frame

  1. #1
    Join Date
    Sep 2009
    Location
    pakistan
    Posts
    28
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Exclamation controlling scroll while using frame

    i used nested frames but i dont want to scroll them saparately i want the scrolling of frames at the same time as any normal page we scroll in browser is it possible in short i want to to use single scroll bar for the frames i am using in my site

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Much will depend upon if your overall design (particularly the dimensions of the iframes visa vis the space required by their contents) will support this without making portions of the content within any one of the iframes inaccessible (unable to be seen). If not, this will still work, but you will end up with a not too good page.

    That said, you may set the overflow property of of the pages within the iframes (both their html and body selectors) to hidden:

    Code:
    html, body {
     overflow: hidden;
    }
    However, this may not be enough for some browsers. So one should also set each iframe's scrolling attribute to no:

    HTML Code:
    <iframe src="whatever" scrolling="no"></iframe>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •