1. Home
  2. Computing & Technology
  3. Personal Web Pages

Jumping Over Tables - For Fun, Design and Organizing

By Linda Roeder, About.com

3 of 10

Table Align

Table Align

Table Align

align

Using the align tag you can tell the table whether to go to the right, left, top or bottom of the text surrounding it.

The align tag goes inside the table tag. The code for the table to be aligned to the left will look like this:

<table border="1" align="left">
<tr>
<td>row 1, column 1</td><td>row 1, columnn 2</td>
</tr>
</table>
<P>Surrounding text will be over here on the right and the table will be over on the left of the text just like this.</P>

Below is what this looks like:

The code for the table to be aligned to the right will look like this:

<table border="1" align="right">
<tr>
<td>row 1, column 1</td><td>row 1, columnn 2</td>
</tr>
</table>
<P>Surrounding text will be over here on the left and the table will be over on the right of the text just like this.</P>

Surrounding text will be over here on the left and the table will be over on the right of the text just like this.

You can also align the table to the top, bottom or center.

Explore Personal Web Pages
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Personal Web Pages
  4. Tables
  5. Table Align - Left Align and Right Align

©2009 About.com, a part of The New York Times Company.

All rights reserved.