PDA

View Full Version : font parse error, empty string. Does anybody know...?



fifthhouse
Oct 25th, 2008, 04:22 AM
I have a question I was wondering if anyone might help me with. I did a css validation check on a template I have on my website, and received the following message:

Value Error : font Parse Error [empty string]

I'm not a coder, but I have found the line in the css file:
289 .post .meta, .post .longmeta

I just don't know what to do to correct it...

Any help will be much appreciated.

bazz
Oct 25th, 2008, 04:45 AM
can you post a link top the validator for your specific file. or post the actual relevant css.

bazz

fifthhouse
Oct 26th, 2008, 02:32 AM
Hi there and thank you for responding to my post. Here is the link to the validator with the site validation result:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.angerwise.com%2F&profile=css21&usermedium=all&warning=1&lang=en

Does is make any sense?

bazz
Oct 26th, 2008, 02:55 AM
I am not sure I understand the use of that css. Presumably it is that meta is a child of the class 'post' and also that longmeta is a child.

I would start by replacing this css section with this. The changed bit is highlighted.



.post .meta, .post .longmeta {
height : 11px;
margin : 0;
padding : 5px 0;
line-height : normal;
color : #787878;
font-family : Georgia, "Times New Roman", Times, serif;
}



Then re-validate and let us know what happened.
bazz

_Aerospace_Eng_
Oct 26th, 2008, 04:54 AM
When using the shorthand font property you must specify ALL parts.

http://www.htmldog.com/reference/cssproperties/font/

bazz
Oct 26th, 2008, 05:05 AM
It seems strange to me Aero. In the part that was errored by the validator, it doesn't seem to use the font shorthand there.

bazz

_Aerospace_Eng_
Oct 26th, 2008, 06:17 PM
Yes it does. This is his CSS at that line

.post .meta, .post .longmeta {
height: 11px;
margin: 0;
padding: 5px 0;
line-height: normal;
font: .8em;
color: #787878;
}

bazz
Oct 26th, 2008, 07:25 PM
stranger and stranger.

the css I get when I look at his validator link is this


.post .meta, .post .longmeta {
height : 11px;
margin : 0;
padding : 5px 0;
line-height : normal;
color : #787878;
}


But your comment prompted me to look at his actual (first) css file and then I saw the error.

I thought any changes he may have made, would show up at the same link.:confused:

bazz

_Aerospace_Eng_
Oct 26th, 2008, 07:40 PM
Thats because the validator only shows valid CSS hence this part

Valid CSS information
The font: .8em isn't valid CSS so it doesn't show on the validator page.

bazz
Oct 26th, 2008, 08:02 PM
Blimey!!

I missed that.

bazz

fifthhouse
Oct 27th, 2008, 03:10 AM
Hey everybody. Thanks for all the activity around my post. I appreciate it.

Right now though I don't know how to proceed. I tried adding the code:
font-family : Georgia, "Times New Roman", Times, serif;
as you suggested, but I got the same error message with the validator.

oesxyl
Oct 27th, 2008, 04:13 AM
Hey everybody. Thanks for all the activity around my post. I appreciate it.

Right now though I don't know how to proceed. I tried adding the code:
font-family : Georgia, "Times New Roman", Times, serif;
as you suggested, but I got the same error message with the validator.
try to put content inside the page, :)



.....
</body>
</html>
<p>Welcome to Anger Wise. I just launched this site on October 22, 2008. It’s a work in progress so stay tuned!</p>

you must validate (x)html before css:

http://validator.w3.org/check?uri=http&#37;3A%2F%2Fwww.angerwise.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.591

regards

bazz
Oct 27th, 2008, 01:45 PM
maybe having changed it you forgot to upload it? the css on the server still shows as



.post .meta, .post .longmeta {
height: 11px;
margin: 0;
padding: 5px 0;
line-height: normal;
font: .8em;
color: #787878;
}



but you can change it to




.post .meta, .post .longmeta {
height: 11px;
margin: 0;
padding: 5px 0;
line-height: normal;
font: bold .8em Georgia, "Times New Roman", Times, serif;
color: #787878;
}


The font is now declared the same way as at your input,textarea near the top of your css file.

bazz