Possible duplicate:
How to vertically align a table in CSS
I would like to place the smack dab table in the center of the page. IT is easy to horizontally align it using
<table align="center"></table>
But this will not allow:
<table align="center" valign="center">
I also cannot put valign in a div because it is not a valid attribute.
I have an idea to make the cell occupied the whole page using:
<Table align="center" width="100%"> <tr><td valign="middle" height="100%"></td></tr> </table>
But this also does not work, because my <td> does not occupy the entire page. When I set its height to 100%, it only takes up the necessary space.
Any ideas? CSS will also be helpful.
source share