tobyw_1969
05-14-2003, 08:26 AM
Is there an easy way, if you are using layers, to position the whole 'page' in the centre of the browser?
I used to use tables before coming to this forum, and I like pages which centre themselves when they are smaller than the browser - I know you can use absolute positioning, so is there an easy way to determine the width of the browser, and how would you use a variable like browserWidth/2 in the specifications for your layers?
Anyone have a simple solution? Or do I just have to make all my webpages line up on the left of the browser?
Thanks
I used to use tables before coming to this forum, and I like pages which centre themselves when they are smaller than the browser - I know you can use absolute positioning, so is there an easy way to determine the width of the browser, and how would you use a variable like browserWidth/2 in the specifications for your layers?
Anyone have a simple solution? Or do I just have to make all my webpages line up on the left of the browser?
Thanks