color change for one cell
Thomas Dowling
tdowling at ohiolink.edu
Mon Nov 17 14:27:06 EST 1997
-----Original Message-----
From: Isabel Danforth <danforth at tiac.net>
To: Multiple recipients of list <web4lib at library.berkeley.edu>
Date: Monday, November 17, 1997 1:35 PM
Subject: color change for one cell
>Is there a valid means of changing background color, for just one cell of a
>table?
>
>The following seems to work on my win95 PC under both netscape 3 and
>communicator. However under netscape 2, the background color does not
>change at all, and worse, is that under netscape 3 on another Win95 PC, IT
>only changed for the lines of text within the cell, not for the full 'box'
>itself.
>
>The actual page (it is only a test page) is at:
> htt://www.tiac.net/users/wethpl
>
>
>The code involved is:
>
><BODY BGCOLOR="ffdd99" LINK="880088" VLINK="800000">
> <h2><center><img src="book5.gif" align=bottom height=48 width=48
>alt="books and the world ">
><b>Welcome to the Wethersfield Public Library<br></b></center>
></h2><hr>
>
><table WIDTH=100% cellspacing=5 valign=top>
>
> <tr>
><td width=40% align=left valign=top bgcolor="#ffffff">...
HTML 3.2 does not include a BGCOLOR attribute for table cell elements, but
HTML 4.0 does. Regardless of your validation status, Netscape 2 doesn't
support that attribute, and I wouldn't be surprised to learn tht Netscape 3
does it with some flakiness (but when in doubt, validate).
BTW, color hex codes are expected to begin with a '#' character. That's
probably not a problem here, but it could conceivably confuse some browsers.
Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu
More information about the Web4lib
mailing list