PDA

View Full Version : Parse error?????


althera
04-17-2007, 12:31 PM
what does this mean?

i am clueless and have looked online but cant seem to find an answer to this specific parse error!!!

5 body Value Error : font Parse Error - [empty string]

here is the code it is referring to:

body {
min-width: 100px;
background-color:#ffffff;
font-family: "Trebuchet MS",sans-serif;
font: 83%/140%;
color: #000000;
text-align: center;
}

thanks in advance!!!

nolvorite
04-17-2007, 12:37 PM
next time please use the code tags when posting code!

anyways, if you put a quote in the first font family, you should also put in all the others.


font-family: "Trebuchet MS","sans-serif";

althera
04-17-2007, 12:53 PM
nolvorite--
thanks so much for the quick reply and help

sorry about the code tags-- will use them in future!!

ronaldb66
04-17-2007, 03:45 PM
if you put a quote in the first font family, you should also put in all the others
Not according to the specs you don't: font family names containing spaces should be quoted, but a combination like:

font-family: "Gil Sans", verdana, "Trebuchet MS", sans-serif;

should be perfectly acceptable.

My guess is the parse error is caused by this:

font: 83%/140%;

or, using the font shorthand notation while omitting most of the values; some property values (like font-family) are set to default by omitting them. Using the separate font-size and line-height properties instead of the shorthand form seem more in order.