Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Attributes for <TR ...>
ALIGN = LEFT | CENTER | RIGHT
HALIGN = LEFT | CENTER | RIGHT

ALIGN sets the horizontal alignment of the cells in the row. One of the most common situations where ALIGN is useful is when you have a row of table headers that you want to align left with the text instead of being centered. So, for example, this code sets the first row of cells to align left:

<TABLE BORDER>
<TR ALIGN=LEFT> <TH>Fruit</TH> <TH>State</TH> </TR>
<TR> <TD>watermelon</TD> <TD>Georgia</TD> </TR>
<TR> <TD>apples</TD> <TD>Washington</TD> </TR>
</TABLE>

which gives us this table:

Fruit State
watermelon Georgia
apples Washington

HTML 4.0 says that HALIGN sets the horizontal alignment of the cells, but HALIGN is currently poorly supported by the browsers while ALIGN is well supported. Stick to ALIGN for now.

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire