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

Star Resell Our Services As Your Own
Basic Reseller
Pro Reseller
Reseller Login

register domain names
Domain Sales
.com $8.99 (Now-Sept)

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!