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

Colgroup

Usage

Used to specify properties for an entire group of columns, normally 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>COLGROUP Document Example</title></head>
<body>
<table border="1" width="100%">
<colgroup align="left">
<colgroup align="center">
<colgroup align="right">
<tbody>
<tr>
<td>column 1 left alignment</td>
<td>column 2 center alignment</td>
<td>column 3 right alignment</td>
</tr>
</table>
</body>
</html>


HTML Tags Center

last edited (April 12, 2004) by leeos, Number of views: 1170, Current Rev: 3 (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.