top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I Center A Table?


How to do it

You can center a table just as you would center anything else on your web page. Simple place a <CENTER> tag right before your table, and an ending </CENTER> tag at the end of your table, like this:

<CENTER>

<TABLE>
<TR>
<TH>Team</TH>
<TH>Games</TH>
<TH>Wins</TH>
<TH>Losses</TH>
</TR>
<TR>
<TD>Eagles</TD>
<TD>5</TD>
<TD>5</TD>
<TD>0</TD>
</TR>
<TR>
<TD>Jets</TD>
<TD>5</TD>
<TD>4</TD>
<TD>1</TD>
</TR>
<TR>
<TD>Little Giants</TD>
<TD>4</TD>
<TD>2</TD>
<TD>2</TD>
</TR>
</TABLE>

</CENTER>

Seeing this in the browser would look like this:

Team Games Wins Losses
Eagles 5 5 0
Jets 5 4 1
Little Giants 4 2 2



< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!