Force scrollbar on short pages

When you have a design that does not fill the full screen you sometimes get the problem where the page seems to shift when you navigate between long and short pages.

This is because of the scroll bar on the right that appears or disappear depending on the length of your scrollbar.

All you have to do is edit your .css file and add the below:

/*Force scroll bar for short pages*/
HTML {
overflow-y:scroll;
overflow-x:auto;
}

Share
This entry was posted in Browsers, CSS, Internet Explorer, Joomla and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free