Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 975   Yesterday: 1,235   Max: 1,872   Total: 481,952   Current Users : 24 (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 <TABLE ...>
BGCOLOR = color expression

BGCOLOR sets the background color of the entire table. For example, this code creates a table with a background color of yellow:

this code produces this
<TABLE BGCOLOR=YELLOW>
<TR>
   <TD>lemons</TD>
   <TD>grapefruit</TD>
   </TR>
<TR>
   <TD>bananas</TD>
   <TD>pineapple</TD>
   </TR>
</TABLE>
lemons grapefruit
bananas pineapple

You can also set the background colors of rows with <TR BGCOLOR="..."> and of individual cells with <TD BGCOLOR="...">.

Netscape and MSIE have different ways of displaying the background color. MSIE fills the entire table with the background color. Netscape only fills the cells, but not the spaces between the cells, resulting in an annoying block of individual colored cells:
MSIE MSIE version
Netscape Netscape version
You can kludge around the Netscape bug by enclosing the table in a one-cell outer table:

this code produces this
<TABLE BGCOLOR="#CCCC99"><TR><TD>
<TABLE>
<TR>
   <TD>lemons</TD>
   <TD>grapefruit</TD>
   </TR>
<TR>
   <TD>bananas</TD>
   <TD>pineapple</TD>
   </TR>
</TABLE>
</TD></TR></TABLE>
lemons grapefruit
bananas pineapple



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.