View Full Version : Layer Issues - relative positioning

02-15-2006, 10:24 PM
Hi all.

I have been pulling my hair out lately trying to get layers to stay central on a page. By this i mean, i have a centered web page, which is fine with a default browser window, but as soon as you maximise or resize the browser, the layer shifts from its original position.
I assume this is to do with the absolute positioning with the top left corner of the browser window.

My question is this, im pretty sure that i would need to put the layer into a container table to hold it in place, but how do i change the layer so that is always positioned relative to its original placing, even when resizing the window? I have tried to change the HTML to relative positioning, but it seems to add a few paragraphs to the initial position, and i get the same problem!!! HELP!!

02-16-2006, 01:42 AM

Absolute positioned layers will never center in a layer. 'center' and 'absolute positioned' are mutual exclusive.