View Full Version : default the center of the page

10-27-2003, 07: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, 04:59 AM

<body onload="scrollBy(800, 0);">

10-28-2003, 09:17 AM
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, 04:49 PM
thanks fellas that helped :thumbsup: