www.webdeveloper.com
Results 1 to 5 of 5

Thread: scrolling in a iframe

  1. #1
    Join Date
    Jun 2010
    Posts
    47

    scrolling in a iframe

    Hi, I'm having an issue with a web page I am making. I have an iframe that is at the bottom of the page. Everything looks fine, but when I scroll with my mouse wheel on the iframe, the iframe and parent page scrolls at the same time. This is really annoying because it keeps moving the iframe when I scroll. Are there any ways to prevent the parent page from scrolling when the mouse is within the iframe's area?

    Thank you.

  2. #2
    Join Date
    Apr 2006
    Posts
    493
    if the parent element you are sourcing for your iframe is larger then the iframe element you have on your page it will still scroll even if you have the scroll set to 'no' in your <iframe> code.

  3. #3
    Join Date
    Jun 2010
    Posts
    47
    the iframe is the correct size, but the web page that contains the iframe scrolls when I use the mouse wheel. I only want the mouse wheel to affect the iframe.

  4. #4
    Join Date
    Apr 2006
    Posts
    493
    so you don't want your website to scroll while the iframe does, or you don't want the iframe to scroll?

  5. #5
    Join Date
    Jun 2010
    Posts
    47
    I don't want the website to scroll when the iframe does. Correct.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles