|
Posted by Jukka K. Korpela on 11/04/07 07:04
Scripsit Bone Ur:
> Well bust mah britches and call me cheeky, on Sat, 03 Nov 2007
> 22:18:15 GMT bbxrider scribed:
>
>> i have this css class
>> .tble1, .tble1 TD, .tble TH
>> {
>> font-family:verdana;
>> font-size:10pt;
>> color:orange;
>> }
>> and invoke it in a table
>> <table cellspacing="1" cellpadding="15" class="tble1">
>>
>> i get the font style and size ok in the td's, but color is always
>> white
>>
>> it needs to be done differently?
>> bob
>
> Not sure, but I think Verdana only comes in white.
No, it's because tables are white in November.
Hint: if you have no idea of the problem, still less a solution, just shut
up. If you tried to be funny, well, you weren't.
Seriously, in order of preference,
1) Use valid HTML, and check that it's valid.
2) Use CSS by the book, and check that too.
3) Now re-check: you failed item 1, because lack of DOCTYPE triggers Quirks
Mode.
4) Don't use Verdana.
5) Don't use 10pt or any other size in pt units.
6) Don't use nonstandard color names like orange. If you don't know which
color names are standard, don't use color names.
7) Don't use tables just as a layout tool unless you know what you're doing
(and you don't know now).
8) If problems remain, post a URL and specify the browser(s) you used.
Unless, of course, you just want to waste everyone's time, including yours.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|