Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,029   Yesterday: 1,235   Max: 1,872   Total: 482,006   Current Users : 15 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attribute for <COL ...>
BGCOLOR = color expression

BGCOLOR sets the background color of the cells in the column. For example, the following code sets the first column to a khaki color:

<TABLE BORDER CELLPADDING=5>
<COL BGCOLOR="#CCCC99">

more table rows

</TABLE>

which gives us this table

Name Price Status
office suite 1,343.11 rent
cabling 1.00 100% completely installed

You might find it easier to use styles to set colors, especially if you also want to set the color of fonts. For example, suppose we want to set the background color of the first column to red and the font color to white. First we would put a set of styles rule like this in the <HEAD> section fo the page:

<STYLE TYPE="text/css">
<!--
.redcol
{
background-color:red;
color:white;
}
-->
</STYLE>

Thse styles create a class named redcol. We can apply the redcol class to a column using the CLASS attribute like this:

<TABLE BORDER CELLPADDING=5>
<COL CLASS="redcol">

<TR> <TH>Name</TH> <TH>Price</TH> <TH>Status</TH> </TR>

more table rows

</TABLE>

which gives us this table

Name Price Status
office suite 1,343.11 rent
cabling 1.00 100% completely installed



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.