Log in

View Full Version : Vertical Scroll Bars shifts page; How to stay active



Girard Ibanez
09-25-2006, 11:51 PM
I switched to a larger monitor, 19" wide screen and now notice that the vertical scroll bars do not appear on certain pages.

Is there a way to keep the v. scroll bars always on so that the web page do not jump between pages?

Some pages have more vertical information so the scroll bar appears. Those that don't have enough vertical info the scroll bars are not needed.

This depends again on the resolution settings but I would like to just keep the V. scroll bars active, that way the page does not shrink or expand from one page to another.

Thanks

jscheuer1
09-28-2006, 05:48 AM
Short of adding unseen content of substantial height (screen resolutions can go much higher than what a 19' monitor is capable of), I don't think there is a way to do this in all browsers. A better approach would be to design your pages so that it doesn't look so odd if some have the vertical scroll bar and others do not. Perhaps it doesn't look all that odd now, it may just seem that way to you. In IE, the most widely used browser, all pages have the vertical scroll bar by default, even when not needed. In Fire Fox (recent releases) you can set the body or html elements to overflow-y:scroll; in the style, example using body:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
overflow-y:scroll;
}
</style>
</head>
<body>
hi
</body>
</html>

Between IE and Fire Fox, you have taken in the vast majority of the browsing public.