Home:ALL Converter>Content shifts when content requires scrolling

Content shifts when content requires scrolling

Ask Time:2012-09-22T16:38:05         Author:OutofdepthNerd

Json Formatter

When making a site that doesn't require scrolling, the content is centred. I have placed all page content within a div : #Pagecontent, which has its margins set to auto so that the width of the screen does not matter - the content is always in the centre.

However, when the page requires scrolling because of the length of the content, all of the content on the page shifts slightly. How can I prevent this, as I find it annoying.

Hope this is an okay question. Cheers!

Author:OutofdepthNerd,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12542214/content-shifts-when-content-requires-scrolling
user1690713 :

you can show the overflow all time by css overflow:scroll so the page wont move on the scroll bar ",