Originally posted by: Zugzwang152
div.main
{
width: 50%;
position: absolute;
left: 25%;
}
?
Originally posted by: Homerboy
if you used absolute positioning I think you are screwed as those "measurements" are taken from screen edges and wil lvery from resolution to resolution
IF you didn't use absolute, simple create a table, center it and then move all your content into that one table.
Originally posted by: Beau
Here's an example of CSS + Javascript centering for absolute positioning
Notice the gray boxes, they're there to show you that absolute is relative to the parent if the parent is absolute. If it wasn't, they'd be 60px from the corners of the window rather than the coreners of the content layer.