Chrome error for font family: "Invalid property value"

Atara picture Atara · Nov 25, 2012 · Viewed 13k times · Source

The following CSS works well on IE and FireFox, but chrome marks it as "Invalid property value" -

TD.desc1_hp { font-family: Arial,Arial (Hebrew),David (Hebrew);  }

any hint why?

Thanks,

Atara

Answer

John Dvorak picture John Dvorak · Nov 25, 2012

Font faces should be enclosed in double quotes. Font faces with parentheses seem to require that. This works:

TD.desc1_hp { font-family: Arial, "Arial (Hebrew)", "David (Hebrew)";  }