html - load page with inactive scrollbar -


I have a page that scrolls through images, some are taller than others when a long image If loaded, the browser automatically creates a scrollbar in the window, due to which the width is shocked. Is there a way to load a scroll bar, whether it is necessary, and when a prolonged image activates itself, then activates itself accordingly, when the image turns into a small image?

Thank you!

  div {overflow: scroll; }  

Should do this. This scrollbar will tell if they are called for or not. You can

  div {overflow-x: scroll; }  

If you have a horizontal scrollbar or

  div {overflow-y: scroll; }  

If you want vertical scrollbars from your question it seems that you are interested in the latter solution.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -