|
Posted by wolfing1 on 07/19/06 19:25
Toby Inkster wrote:
> wolfing1 wrote:
>
> > Are CSS class names case sensitive?
>
> CSS says that they're case sensitive if the document language (i.e. HTML
> in this case) is case sensitive. In HTML, element names aren't case-sensitive,
> but classes and IDs are.
>
> > Thanks for the suggestions but so far no explanation of why IE would
> > not show the background and Firefox would (unless it's in the
> > lowercase/camelcase difference that maybe Firefox ignores case and IE
> > doesn't?
>
> It seems to depend on quirks mode. Just make sure you're consistent with
> cases and you should be OK.
>
Oh, forgot to put some final comments here for future generations :)
It was indeed the case! I'll be damned, I thought CSS was case
insensitive. Normally it's not a problem for me as I use lowercase
most of the time, but for some reason I decided to use some uppercases
for a couple of styles, and that was the problem. In fact, I guess
different browsers treat case sensitivity differently, as Firefox took
the styles while IE didn't.
Thanks! I would have NEVER found this problem out on my own.
[Back to original message]
|