Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 16, 2004, 1:24 am
rate this thread
Re: How Do You Vertically Center a Table on a Webpage?
Yup, though it's one of its weak spots.
One thing people around here don't like: misuse of tables solves the
problem, because only TDs can have their content centered vertically. (In
reality; theoretically, you can assign display:table to a div and use
vertical-align then, but it won't work in IE, so it isn't much help). If you
know the exact height of the table, it's somewhat easier.
Anyway, a LOT has already been written about this topic. Further info: