Forcing a scroll bar on your browser with css.

/images/default.jpg

Often when you have some long pages and some short your page may jump slightly horizontally which can be qutie annoying.
This can be caused by the scroll bar sometimes being there and sometimes not, and this will vary depending on the size of the monitor.

One way to get around this is to force a scroll bar on every page. This will make sure the page wont jump no matter the size of the monitor.

The fix for this is very simple. Just add the following to your css file:

body {

overflow-y:scroll;

{

Tags:

Leave a Reply