How to scroll only what is visible?

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

    #1

    How to scroll only what is visible?

    I have a HTML content with some pages
    defined as <div>...</div>. One of them
    is visible while the rest is hidden (the
    visibility can be changed on client side).
    The problem: standard window scroller
    counts whole content (visible and hidden)
    so empty space is also scrolled. I'd like
    it to behave as only visible content
    is to be scrolled (not empty space).
    The same applies to print (window.print).
    It prints not only what is visible, but
    also empty pages for these div's which
    are not visible.

    How to set scroller (and print method)
    to take only visible content of page?

    Thank you in advance.

    Marek Kotowski
    Warsaw
  • Thomas 'PointedEars' Lahn

    #2
    Re: How to scroll only what is visible?

    Marek Kotowski wrote:
    [color=blue]
    > The problem: standard window scroller
    > counts whole content (visible and hidden)
    > so empty space is also scrolled.[/color]

    Don't use the "visibility " property but use
    the "display" property and set it to "none".
    [color=blue]
    > How to set scroller (and print method)
    > to take only visible content of page?[/color]

    Cure the disease, don't doctor the symptoms.


    PointedEars

    Comment

    Working...