...

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



Deanna475
01-23-2005, 08: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!

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

http://www.tizag.com/cssT/reference/position.php

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

http://www.codingforums.com/showthread.php?p=182254#post182254

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum