Hi,
I get this strange error during validation and I cant understand what is wrong with my css code. Maybe someone out there can help?
Line: 15 Context : ���
Parse Error - body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; color: #000000; background-image: url(images/bg.jpg); margin-top: 40px; }
Any ideas what could be wrong?
CSS Validation Parse Error
When I put it through the validator it says:
Valid CSS information
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : small;
color : #000000;
background-image : url(images/bg.jpg);
margin-top : 40px;
}
:shrug:
Show the entire css or even better give a link to the actual file. It could be the line before. It could be strange characters in the file.
CSS Validation Parse Error
Well I attached the file to this message. I am really curious what could be wrong.
I am validating with opera 7,54 that shouldnt play any role though.
CSS Validation Parse Error
* Line : 20 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 32 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 50 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 64 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 72 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 81 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 90 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 113 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 120 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 127 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 134 font-family: You are encouraged to offer a generic family as a last alternative
Get those fixed up first 
It seems to be either a problem with the comments or the line before BODY. Ill investigate.
CSS Validation Parse Error
Changing the comment to this:
/* CSS Dokument for:
Domain: itsecurity.gr
Author: A Kontini (Content, Layout and Technique)
Normal Text
font type, -size, -color; backgroundcolor; Cursorstyle; Space from top */
(only one set of comment tags instead of two) fixes it up, although the validator still says this:
Valid CSS information
* ??? body {
o font-family : Verdana, Arial, Helvetica, sans-serif;
o font-size : small;
o color : #000000;
o background-image : url(images/bg.jpg);
o margin-top : 40px;
}
No idea what the problem is there :?
CSS Validation Parse Error
Open up something like notepad and resave the file as ANSI not as UTF-8 this is causing your problems.
Hugo.
CSS Validation Parse Error
When I saved it as ansi it was fixed
. Thanks!
I originally wrote the css in notepad and then imported it in dreamweaver. I must have saved it as utf 8 and I must say notepad have caused me a lot of problems especially with pages in greek. It seems that there are always some weird bytes there.
What does it mean by generic font family? Arial is not generic?
CSS Validation Parse Error
No, Arial is a specific font. Try adding sans-serif to the end of the list of fonts.
CSS Validation Parse Error
Thats great, it worked with the sans serif in the end. No errors and no warnings
.
Thanks a lot everyone! \:D/
CSS Validation Parse Error
Open up something like notepad and resave the file as ANSI not as UTF-8 this is causing your problems.
CSS Validation Parse Error
You woz on the right track then Triumph it was indeed that naughty little imp BOM.