Center a page content both horizontally and vertically

Some people love this look for their website. While others don’t exactly know how to achieve it themselves. We’ll show you how you can do this with your website too…

Put your content in a table.

Containing <TABLE> with WIDTH and HEIGHT set to 100%. Establish one cell in one row with ALIGN=”center” and VALIGN=”middle”.

Code:

<HTML>
<HEAD>
<BODY>
<TABLE WIDTH=”100%” HEIGHT=”100%”>
<TR>
<TD ALIGN=”center” VALIGN=”middle”>Your beautiful content here</TD>
</TR>
</TABLE>
</BODY>
</HTML>

m121ban2





mp

dotme NEW .ME There’s a story inside each one of us, waiting to be told. Tell yours to the world with .ME -- the Top Level Domain that’s all about you!

register domain names Domain Sales

.com $8.00

.info $1.99

.net $7.50