Started making jQuery gallery.

  1. How to remove the vertical scroll?
  2. How to add it, but so that it does not scroll the page with all its contents, but only the image itself, if it does not fit in height?
  • 2
    [overflow] [1] to help you [1]: htmlbook.ru/css/overflow - kandi
  • More can you? - oleg_ismaylov
  • @oleg_ismaylov, if you are given a comprehensive answer, mark it as correct (click on the check mark next to the selected answer). - Crasher

2 answers 2

css has a magical property

overflow,overflow-x,overflow-y:<visible>|<hiiden>|<auto>,<scroll>,<inherit>

    Here it was discussed: The Modal - the correct modal window .

    A modal window, by definition, blocks the user's work with the parent window until the user closes it. I.e:

    • The user should not be allowed to scroll the page under it.
    • At the same time, if there is a lot of content in the modal window, you need to allow scrolling content.

    According to this principle, viewing photos on Facebook and Vkontakte works, and I think that this is the right option for modal windows.