Links
Home
Email
<COL> and <COL>
Description:
This tag defines the attributes for columns in a table.
Attributes:
| align=alignment | |||||||||
Defines the horizontal alignment of the data within
the cell.
|
|||||||||
| class=class | |||||||||
| Indicates that the text is to be formatted using the specified class. | |||||||||
| dir=direction | |||||||||
| Indicates the direction (right or left) that the text is to be displayed. Useful for languages which display left to right. | |||||||||
| event=JavaScript | |||||||||
| When event occurs, execute the specified JavaScript. | |||||||||
| id = "name" | |||||||||
| You can give a text a name, which allows it to be referenced and changed in a script (dynamic HTML). | |||||||||
| lang="lang" | |||||||||
| Indicates the language of the text within the text. | |||||||||
| span=n | |||||||||
| Number of columns that will be spanned. The default is 1. | |||||||||
| style="style" | |||||||||
| Defines the style in which the text will be displayed. This overrides any style elements at an "outer" level, such as from the BODY or the Cascading Style Sheet. | |||||||||
| title="title" | |||||||||
| You can give a text a title if you want. This provides some additional information about the text. I'm not sure why you would want to do this, but you could. | |||||||||
| valign=n | |||||||||
Specifies the vertical alignment of the data within
the cells.
|
|||||||||
| width="n" | |||||||||
| Width of each column defined by the <COL> tag.
Overrides any width specified in the <COLGROUP>
tag.
Width may be a number of pixels, percentage or relative value. A relative value is a number followed by an asterisk (*). The way this works is the columns are divided up according to the relative values. Note that relative values are not supported by Internet Explorer, |
|||||||||
Examples:
<table border="1" width="80%">
<col width=10%>
<col width=20%>
<col width=30%>
<col width=40%>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
|
<table border="1" width="80%">
<col width=1*>
<col width=2*>
<col width=3*>
<col width=1*>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
|
Internet Tips Contents
404 Errors
Advertising
Autoresponse
Awardmaster
Basics
Browsers
Careers
Chatting
Disasters
Domains
Email
Emoticons
Ezines
Free Stuff
Fun Stuff
FTP
Graphics
Homepages
HTML Reference
HTML Tutorial
Interactive
Legal
Links
Msg Boards
Microsoft
Money
Multimedia
Networks
Newsgroups
Newsletter
Products
RFC's
Ringmaster
Searches
Security
Sticky Sites
Surfing
TANSTAAFL
Telnet
Viral
Webmaster
Your System