Re: Tables, backgrounds, HTML4, and, of course, style sheets...

by Jim <webmaster(at)thedigitalpage.com>

 Date:  Tue, 02 Nov 1999 08:45:47 -0800
 To:  <hwg-style(at)hwg.org>
 In-Reply-To:  net
  todo: View Thread, Original
At 11:17 PM 11/1/99 , Roger Stenning tickled the electrons and they aligned 
themselves to form these words:

>[snip]
>
>HTML3.2 allowed the use of backgrounds within table cells (the <TD>
>element). This is, as far as I can tell, now depreciated. In it's place, we
>have CSS.
>
>So. How the heck do I get certain TD elements within a table to have a
>background image? I've tried classes, but to no avail.


Hi Roger!

I'm using these classes to use a background graphic in cells on my site:


TD.top1 {background-color: #F2F2B3;
                 background-image: URL(graphics/top1.gif) }

TD.left {background-color: #F2F2B3;
                 background-image: URL(graphics/legalpad_05.gif) }

TD.right        {background-color: #F2F2B3;
                 background-image: URL(graphics/legalpad_05a.gif) }

Seems to work fine in NS / IE on both Mac / Windows. I know part of this is 
repetitious, but I'm still trying to figure all this out and it fits the 
logic of my learning ability. As Tenley noted in a previous post, I 
*really* need to clean up the code and class statements for this site.

HTH


Jim Parsons
webmaster(at)thedigitalpage.com
phone: (509) 521-5424
fax: (603) 288-0200
http://thedigitalpage.com/

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA