regardless of the screen resolution used by the site visitor
Resolution only determines the maximum practical browser viewport width.
Beyond that, it has no relationship to 'centering' in the browser.
Also, I am wondering what the arguments are, pro and con, for using layers
versus using tables in a web site design.
It's not a versus thing. Use both together if it works for your needs. But
you need to know these three very important things -
1. Never put a layer into a table - putting tables into layers is OK, but
not percent width tables, and not if the layer is not flush with the left
margin (i.e., left="0").
2. Do not put text content into layers (even when it's in tables) because
if the text is resized in the browser by the visitor, the layer will expand
vertically and overlap other page content.
3. Understand that layers are absolutely positioned and tables are able to
center aligned - this means that the tables can move within the browser
viewport, while the layers (without some other treatment) are fixed
absolutely to the screen, and will not move.
Now - having said that, you can cause 'layers' to center easily by placing
their frame of reference for positioning inside an element that is a
centering element. This is easy to do as follows -
Change this -
</head>
to this -
<style type="text/css">
<!--
body { text-align:center; color:#CCC; }
#wrapper { text-align:left; width:720px; margin:0 auto;position:relative; }
-->
</style>
</head>
change this -
<body ...>
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
</div><!-- /wrapper -->
</body>
and see if that helps.