...

View Full Version : default the center of the page



ecnarongi
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.

glenngv
10-28-2003, 03:59 AM
try:

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

Kor
10-28-2003, 08: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...

ecnarongi
10-29-2003, 03:49 PM
thanks fellas that helped :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum