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

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

From: Coises <Randy@coises.com>
Date: Sun, 07 Apr 2002 21:18:10 -0700
To: <www-style@w3.org>
Message-ID: <5262bucq0vq7c7djehfe00vr19sp4iucua@4ax.com>
[Mon, 8 Apr 2002 13:05:08 +0930] James Dean:
>BODY, TD {
>        color : Black;
>        font-family : "Times New Roman", Times, serif;
>        font-size:18px;
>        text-align: left;
>        background : #CCFF66;
>        font-weight: bold;
>        font-style: italic;
>}
>
>in the document:
>
>  <tr>
>    <td width="117" bgcolor="#000000" valign="top">{NAV_BAR}</td>
>    .....
>
>
>White

I presume you mean "black"

>does not over-ride the other colour. Could someone please point me at
>the correct syntax.

I believe this:
    <td width="117" style="background: #000000" valign="top">{NAV_BAR}</td>
should work as you wish.

Alternatively, you could use something like this:
     .blackback {background: black}
     ...
    <td width="117" class="blackback" valign="top">{NAV_BAR}</td>
to keep the presentation in the style sheet.
Received on Monday, 8 April 2002 00:18:05 GMT

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