I'm trying to setup a page on which the content is centered both horizontally and vertically. My approach:
I use one table, set to 100% width and height and inside of it another one-cell table set to a fixed width and height. This centers the entire content of the page.
Now, within that centered cell, I need to use DIV's as well. Below code works for me in NS (i.e. the DIV's stay aligned with the background image) but in IE, the DIV's shift vertically on resize.
As far as I understand this has to do with IE's bug when using a combination of tables and relative positioning. Wonder if anyone knows a workaround WITHOUT!!! extensive JavaScript. I know it can be done with JS, but it's a rather dirty hack ...
Any help greatly appreciated.
Thanks
Diego
This might help. It will give you a layer in "around about" the center of the page.
You should be able to put a smaller table/div inside this container with some negative top and left values to get the centering correct of the content...kinda like what you've been doing already.
You sure made my day!!!
Just in case anyone is interested, here's the code: