I have had no trouble coloring a td. A background should work in any box object.
But it must be a td and not a TD. CSS doesn't know what a TD is.
All relevant tage, styles, ids, classes, and selectors must be in lowercase for CSS to understand them.
Be aware that the cell will NOT expand to show the entire image. It shows only the portion which fits behind the contents.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
Is there some reason I always have trouble posting at 4 am?
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
... MidiMagic ...
Also, can you please confirm about the UPPER/lowercase for CSS...
* I thought that you shouldn't use _ (underscore) due to some browsers not liking it (added for CSS2 after release) (NN was an issue).
True. Use letters and numbers for classes and ids for max compatibility. The first character must be a letter.* You shouldn't use a Numeric value at the begin (not due to CSS, but due to DocTypes).
Correct.* You can use UPPER/lower/MiXeD case in ID and CLASS, so long as the same is used in both the DOC and the CSS code, (but you are correct about things such as TABLE should be table (I think)), thus...
<div id="rabbitone"> #rabbitone
<div id="rabbitOne"> #rabbitOne
<div id="raBBitone"> #raBBitone
The problem is that you shouldn't use more than one of these as identifiers. Mozilla (Netscape and Firefox) correctly addresses them as three different ids, but Internet Explorer does smash-case on them (interpreting all alphabetic characters as being lowercase), making all of them become the same id.
----
<div id="rabbit1"> #rabbit1
<div id="raBBit1"> #raBBit1
These become the same id in IE.
----should work fine...
where as
<div id="Rabbitone"> #Rabbitone
That one works as long as the smash-case duplicate ID is not present.
----
<div id="rabbit_one"> #rabbit_one
<div id="rabbitone"> #RABBITONE
<div id="RABBITONE"> #rabbitone
shouldn't work (or won't work on all browsers!)
The first one has an illegal character on some Doctypes.
The last two become the same id in IE, and dont address in Mozilla (or address as each other).
???If you know of an official doc on this, please point it out, as for some reason I cannot actually find one... (which bugs me no end ;) ) XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182