PDA

View Full Version : Javascript Console Shows CSS Problems



cklester
23 Mar 2007, 8:35 AM
I'm wondering if I can resolve the four (4) CSS errors when using the reset-fonts.css provided by Yahoo. Is it just a matter of removing the asterisks from the definitions?

Three of the error messages are "Expected declaration but found '*'. Skipped to next declaration."
One is "Error in parsing value for property 'font'. Declaration dropped."

Thanks!

JeffHowden
23 Mar 2007, 11:01 AM
Personally, I wouldn't worry about the CSS errors (I'm sure they're actually just warnings, not errors) as they don't cause any sort of issue with rendering/styling.

cklester
23 Mar 2007, 11:08 AM
They actually are errors. It shows the "Error" icon (a stop sign) instead of the "Warning" icon (yield sign).

You're right that they don't cause rendering problems, but I suspect it will affect validator results, which I want to avoid.

tryanDLS
23 Mar 2007, 11:27 AM
You're potentially always going to get those, depending on which browser you're using. The CSS files may have entries that are either not supported or proprietary to either IE or FF, to deal with quirks and/or browser rendering bugs.

Removing an atsterik from a CSS entry can cause problems - do mean something like?
* html .blah

That's a valid css statement in IE, although FF might kick it.

cklester
23 Mar 2007, 11:58 AM
Gotcha. Thanks for the info, y'all! :)