View Full Version : default the center of the page
10-27-2003, 06:29 PM
Is it possible to align a page in the center of the page, not left justified? If I have a page 1600 x 1200 and the the visitor has a screen of 800 x 600, is there a way to make the scrollbar at the bottom of the page default to the middle of the page instead of left jusitified?
All help is appreciated, thanks.
10-28-2003, 03:59 AM
<body onload="scrollBy(800, 0);">
you may use screen.availHeight/2 as a start for a new, relative, coordinates origin, but unfortunately you have to evaluate, in pixels, the height of the upper browser's menu toolbars, which is not the same, according to the user's type pf browser or user's customized options...
10-29-2003, 03:49 PM
thanks fellas that helped :thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.