Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome error for font family: "Invalid property value"

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

like image 512
Atara Avatar asked Nov 25 '12 12:11

Atara


People also ask

What does invalid property value mean in HTML?

The Invalid Property Value error is issued in the following situations: Message <property> must be set in <element> Cause. There's a mandatory property in <element> that you haven't set. For example, the Destination property in a Link widget.

What values does the font-style property accept?

The font-style property allows you to make text appear italicized (i.e. sloped, or slanted). This property accepts one of three possible values: normal , italic , and oblique . If a given font family has an italic or oblique face embedded, the browser will select that face.

What is font family property?

The font-family property specifies the font for an element. The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font.

What is default value of the font-style property?

normal: This is the default value of the font-style for which the browser will display normal font text.


1 Answers

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)";  }
like image 94
John Dvorak Avatar answered Oct 02 '22 10:10

John Dvorak