PDA

View Full Version : CSS Class problem with NS6.1


Running Bear
08-29-2002, 12:27 PM
I'm using a CSS defined graphically. Within it I have set up a number a class, which I use to define table cell background colour.

Within the css the class is defined -

TD.green


Here is the code from the css source tab

TD.green
{
CURSOR: default;
BACKGROUND-COLOR: green
}


the Class is called in the page by

<td class="Green">A value</td>


This works in NS4.7, 6.2, IE5.5, IE6.0
Any help or ideas will be greatly appreciated

Thanks Al

applesauce
08-29-2002, 04:42 PM
try using the hexidecimal version of the color instead of "green" in the css background color (ie #66CC66). not sure if this is it, but it's worth a try!
:)

i like this website: http://www.pagetutor.com/pagetutor/makapage/picker/
for looking them up.

MCookie
08-29-2002, 05:55 PM
Also.. maybe it's a typo in your post, but according to the specs, class and id names are case sensitive; class="Green" in your HTML and td.green in your stylesheet may be causing this?

applesauce
08-29-2002, 09:11 PM
that's right- i missed that- but hopefully he'll try the hex anyway.
:D

Running Bear
08-30-2002, 07:54 AM
Applesauce - I tried the hex route without success.

Mcookie - I Changed the class name to proper case and voila it's worked.

Many thanks to both of you for your help, until next time (which will probably be very soon.)

Cheers Al