Friday, September 26, 2008

Put your photo or text in the middle and in the center of a page

Just follow this steps:

  1. Remove the DOCTYPE Declaration from the top of your code. By removing this code you will not be able to validate your page, but who care.

  2. Then insert one table and give it a height=100%.

  3. Then align your text/photo in the center and in the middle of the table. How you do that? By giving to the table the following attributes: valign="middle" and align="center"

No comments: