W3C home > Mailing lists > Public > www-style@w3.org > April 2002

Re: Easy newbie question. - over-riding style-sheet specification.

From: fantasai <fantasai@escape.com>
Date: Mon, 08 Apr 2002 00:42:03 -0400
Message-ID: <3CB11F9B.9072CE7E@escape.com>
To: www-style@w3.org
James Dean wrote:
> 
> I wish to override a bgcolour style for one table cell. I can't make it
> work.
>
> BODY, TD {
>         color : Black;
...
>         background : #CCFF66;
...
> in the document:
> 
>   <tr>
>     <td width="117" bgcolor="#000000" valign="top">{NAV_BAR}</td>
>     .....
> 
> White does not over-ride the other colour. Could someone please point me at
> the correct syntax.

White? You mean black, right? It's because CSS overrides any stylistic HTML.
   http://www.w3.org/TR/REC-CSS2/cascade.html#q12
Use CSS to specify the colors and it should work.

BTW, authoring questions should be directed to
comp.infosystems.www.authoring.stylesheets

~fantasai
Received on Monday, 8 April 2002 00:38:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT