table cell background colors via CSS, and NN4

by "Jeniffer C. Johnson" <lead(at)offlead.com>

 Date:  Sat, 20 Jul 2002 09:40:42 -0500
 To:  <hwg-techniques(at)hwg.org>
 References:  rr
  todo: View Thread, Original
I'm having a bit of trouble wrapping my head around exactly what I've got 
going on here. *G* I could use a bit of help from anyone who understands 
just what the issue is, and can help me figure it out. All of this is from 
what I see at home, running win2kpro. NONE of this is an issue from the 
office on the mac, where NN4 behaves just fine. Go figure.

Site A) has a table cell background color defined in the linked style 
sheet. Specifically <td class="TDmedgreen">. This works fine, even in NN4, 
and no troubles were experienced at all. (http://www.loqui-sf.net)

Site B) has a background image defined for a table cell, again via style 
sheet, and worked on IE, and on NN6, but not on NN4. The original class 
definition was for <td class="nav_td">, and this would NOT work, at all, on 
NN4. When I changed the style sheet and the class call to <td 
class="navtd"> instead, it works fine. Okay, so no underscores in class 
names. I can deal with that, I guess, though I'm not sure WHY it's that 
way. (http://www.3psyndicates.com)

Site C) (And this one has my pulling my hair out! *G*) Here I've got two 
different td backgrounds defined in the style sheet:
.tabletop {
         background-image: 
url("http://jeniffer.offlead.com/themes/OffLead2/images/BGTop.gif");
         background-repeat: repeat-x;
         color: #ffffff;
         font-weight : bold;
         font-size : 11px;
         line-height: 15px;
}
.tablesubtop {
         background-image: 
url("http://jeniffer.offlead.com/themes/OffLead2/images/BGSubTop.gif");
         background-repeat: repeat-x;
         color: #00314C;
         font-weight : bold;
         font-size : 11px;
         line-height: 15px;
}

In the table cells that I assign the class tabletop, it works fine. In the 
cells I define tablesubtop, it only work in empty cells containing a spacer 
gif. The cells where I have text content are NOT displaying a background 
image on NN4. And again, on the mac's version of NN4, it works fine. I 
cannot figure out why it works on one but not the other. And MOST 
frustrating is the fact that if I change the class call in the second row 
from tablesubtop to tabletop, it works fine! Wrong background image, but it 
shows up under my content. I'm completely stumped. I know that the image is 
there, because it's showing up in the cells with no text.

Jeniffer
OffLead Productions
www.offlead.com

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