Force Scroll Bar Display in IE

Stationery Direct

Administrator
Staff member
Anybody got any idea if it is possible for my website to force IE to display the right handside scroll bar at all times, even on pages that are short and don't require it?

I am working on a website that has some really long pages and some very short pages (due to textual content), when I navigate between these pages transition isn't smooth because on some pages the scroll bar isn't there and on others it is...shifting the site about a cm left/right each time.

Any ideas?
 
Hey Damon,

If you put this in your css file you will force all browsers to display a vertical scroll bar.

Code:
html 
	{
		overflow-y: scroll;
	}

I just ran the code through the validator and it says its not valid in CSS level 2.1 but is valid in CSS3.

Hope this helps.
 
Back
Top