View Full Version : centering both vertically and horizontally?


semisonic
07-24-2003, 03:07 PM
i was wondering how you could do that. like, if you have 800x600 res. it would be in the direct center, but if you change it to 1024x768, it would also be in the direct center.

example:

www.purity-arrow.net/kohaku

christiandude03
07-24-2003, 03:19 PM
There may be an easier way, one that works in more than just IE, but try the following:

Put this right after <body>:
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td align="center" valign="middle">

Put the following right before </body>
</td></tr></table>

semisonic
07-24-2003, 04:03 PM
thanks so much!