开发者

page width for screen resolution 1024+

开发者 https://www.devze.com 2023-01-31 15:44 出处:网络
I\'m facing an age old question of html page width - have decided graphics have more \"je nai say quo\" with fixed than percentage and so to go with a central column of 1000px (with 1024 screen res in

I'm facing an age old question of html page width - have decided graphics have more "je nai say quo" with fixed than percentage and so to go with a central column of 1000px (with 1024 screen res in mind)

with graphics in mind, i also want left and right of the central column some nice bordering opti开发者_如何学Goons - increasing the total width potentially by any amount.

so my question is whether its possible to open up a page on a 1024 screen res and have it auto scroll so the middle column shows (regardless of the left border).

today - on the site http://www.delightwebdesign.co.uk the left invisible border - only visible with firebug (intended for graphics) at the moment pushes the middle column rightwards and partly out of view, I'd essentially like the top left of a low res browser to start with the top left of the middle column?

thanks and all input much appreciated


You could listen for the load event and then scroll to the position of your middle column (either get the position by JS, or a pre-set position).

Example (jQuery used for brevity):

$(document).ready(function(){
    document.scrollTo(200,0);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消