This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <caption> Tag
The XHTML <button> Tag
The XHTML <br> Tag
The XHTML <body> Tag
The XHTML <blockquote> Tag
The XHTML <bdo> Tag
The XHTML <base> Tag
The XHTML <area> Tag
The XHTML <address> Tag
The XHTML <abbr> and <acronym> Tags
The XHTML <a> Tag
Wrapping several generated XHTML pages inside one reusable XHTML frame
<< XALAN
XML DOM >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :2278

 

The <col> (column) Tag (XHTML Reference)

Introduction

The <col> tag is used define the values of columns in a table. The <col> tag can be only used nested in a <colgroup> tag, which again can be only used in a <table> tag. You can use the <col> tag to pre-define the size of all columns or you can set the size for each individual column. If you use the <col> tag in your tables, then the table is processed much faster, because the column size is pre-defined.

Example

<table border="1">

     <colgroup>

        <col width="40"></col>

        <col width="80"></col>

        <col width="120"></col>

     </colgroup>

    <tr>

      <td>1st Row - 1st Column</td>

      <td>1st Row - 2nd Column</td>

      <td>1st Row - 3rd Column</td>

    </tr>

</table>

Output

Attributes

Name:

Description:

align

Aligns the content of the column horizontal with one of the following options:

Left

Center

Right

Justify

Char

char

This attribute can be only used if you set the align attribute to char. The usage of the attribute is to set the alignment character. This can be very useful if you have a table row with decimal numbers and would like to align the row according to the decimal point.

charoff

Defines in conjunction with the align attribute the position of the alignment character.

span

Span is used to tell the table how many columns it has to span.

valign

Aligns the column vertically with one of the following options.
Top

Middle

Bottom

Baseline

width

Sets the width of the column


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP