[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
HTMLSPEC-COL

Col

Usage

Used to specify properties for a column or entire grouping of columns that are apart of a another column group, normal within a table.

Attributes

align="left |right | center | justify | char"


Specifies the horizontal alignment of column cell content. ( char ) allows for alignment to take place at a specific character defined by the char="" attribute.

char="text"


Specifies the character where the column text should be horizontally aligned. Only applies when align="char".

charoff="#"


Specifies the marginal value in pixels when column text falls near the character specified by the char="text" attribute.

		
span="#"


Specifies the number of columns <col> is defined to handle.

		
valign="top | middle | bottom | baseline"


Specifies the vertical alignment of column cell content.
width="#"


Specifies the width of each column the <col> element is defined to handle.

Live Example

<html>
<head><title>COL Document Example</title></head>
<body>
<table border="1" width="100%">
<colgroup>
<col align="left">
<col align="center">
<tbody>
<tr>
<td>Text alignment is "left".</td>
<td>Text alignment is "center"></td>
</tr>
</table>
</body>
</html> 


HTML Tags Center

last edited (April 12, 2004) by leeos, Number of views: 1211, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.