View Full Version : Center DIV or table horizontally regardless of screen resolution

01-23-2005, 07:52 PM
Hi all. Seems simple enough what I'm tryng to accomplish but darned if I can find a simple solution:

I have a table containing the contents of my splash page. I want to center the table (or DIV if that makes a difference) horizontally and vertically in the center of the page regardless of screen resolution. Here's the URL if anyone needs a visual reference: http://www.ldoa.net/caet/index.htm

How do I go about doing this? Please and thanks!

01-23-2005, 08:13 PM
try this, using percentages to adjust for browser size and screen res.:


01-23-2005, 08:32 PM
try checking the HTML FAQs sticky at the top of the html forum! Did you even use the search feature on CF?


01-23-2005, 09:02 PM
Thank you for both of your replies. I implemented the "negative margin method" and this seems to have done the job.