View Full Version : Please help me validate my CSS..thanks.


dudepet39
01-19-2005, 02:01 PM
Here is the problems it says I have:

URI : http://www.nitronexplosion.net/testingpage76575.php
Line: 33 Context : body , td
Property scrollbar-face-color doesn't exist : #ced9e7

Line: 34 Context : body , td
Property scrollbar-highlight-color doesn't exist : #ffffff

Line: 35 Context : body , td
Property scrollbar-3dlight-color doesn't exist : #ffffff

Line: 36 Context : body , td
Property scrollbar-darkshadow-color doesn't exist : #ffffff

Line: 37 Context : body , td
Property scrollbar-shadow-color doesn't exist : #ffffff

Line: 38 Context : body , td
Property scrollbar-arrow-color doesn't exist : #000000

Line: 39 Context : body , td
Property scrollbar-track-color doesn't exist : #ffffff

Warnings
URI : http://www.nitronexplosion.net/testingpage76575.php
Line : 30 font-family: You are encouraged to offer a generic family as a last alternative

And here is my CSS coding:

<STYLE>
a:link {
color : #000000;
text-decoration : underline;
}

a:visited {
color : #000000;
text-decoration : underline;
}

a:active {
color : #000000;
text-decoration : underline;
}

.tb {
border: 1px dotted #697F94;
}

a:hover {
color :#000000; text-decoration: none;
}

body, td {
font-family: Verdana;
font-size: 10px;
color: #000000;
scrollbar-face-color:#CED9E7;
scrollbar-highlight-color:#FFFFFF;
scrollbar-3dlight-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-shadow-color:#FFFFFF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#FFFFFF;
}
</STYLE>

I can't understand why the srcollbar colors exist...and what this means, Line : 30 font-family: You are encouraged to offer a generic family as a last alternative?? Please help me thank you. :)

-Brandon

MaGiCSuN
01-19-2005, 02:13 PM
scrollbar is a IE thing only. So therefor it's not a validate coding for all browsers to see ;) You will either have to ignore that or delete it, it's not causing any errors or something to your page.

About the font-family, i think the validation means that it's better to set an alternative font for it, like this:

font-family: verdana, arial;

so that WHEN a computer doesn't have verdana (wich should be really odd though) it switch to arial. I'm not sure though, my english isn't that advanched ;)

Love,
Mirna

kittycat
01-19-2005, 02:48 PM
Probably the best font family to include last is serif (looks like Times New Roman etc) or sans-serif (looks like Arial etc). That way if you want to have one of the font types on your page, it will go to what the user has specified as that type of font if they have none of the others. Otherwise it will just go to system default (which is either the default serif or sans-serif font). Doesn't matter too much unless you're picky on how the font looks with the rest of the page.