Ben Rogers
02-15-2004, 08:53 PM
Line : 0 font-family: You are encouraged to offer a generic family as a last alternative
How could I have a font-family on line zero???
How could I have a font-family on line zero???
|
Click to See Complete Forum and Search --> : Don't understand warning Ben Rogers 02-15-2004, 08:53 PM Line : 0 font-family: You are encouraged to offer a generic family as a last alternative How could I have a font-family on line zero??? buntine 02-15-2004, 09:27 PM I once had the same problem.. I think it has either got to do with a bug in the validator.. Or, you have specified a non-standard font in one of your font-family statements. Ben Rogers 02-15-2004, 09:34 PM Hm. I offered sans-serif as a final alternative for every font-family though.... buntine 02-15-2004, 09:39 PM Did u write it as 'sans-serif' ?? The dash character may have something to do with your problems.. Ben Rogers 02-15-2004, 09:45 PM aren't you supposed to? buntine 02-15-2004, 09:53 PM I dont know.. CSS might interpret the - character as being part of an identifier.. Try removing sans-serif and re-validate the page.. Ben Rogers 02-15-2004, 10:02 PM it's already valid, and sans-serif is a default font. buntine 02-15-2004, 10:06 PM But your first post ststed that it was NOT valid... Remember, i am helping you. If you dont want advice, you should not post here. Ben Rogers 02-15-2004, 10:10 PM I know that, I'm just being blunt cuz I don't feel like typing much right now, sorry if i come off as rude. What I mean is the CSS is valid, what I posted is a warning. And the sans-serif is part of W3 specs i think. buntine 02-15-2004, 10:12 PM Its ok... I dont know why it does it then. I suppose its just a bug in the validator. pyro 02-15-2004, 10:14 PM I bet you that we could help you better if we could see the CSS file you are talking about... ray326 02-15-2004, 10:16 PM Originally posted by omega Line : 0 font-family: You are encouraged to offer a generic family as a last alternative How could I have a font-family on line zero??? Hard to say without seeing the sheet that got the warning but sans-serif IS a generic family. You didn't quote it did you? Ben Rogers 02-15-2004, 10:18 PM Of course. http://projep.t35.com/bg/default.css pyro 02-15-2004, 10:20 PM I don't see a default font-family: font-family: arial black,"arial black", fantasy; Also, why do you have "arial black" defined twice? Remove the first one, as you want quotes around the font name, if it has spaces. ray326 02-15-2004, 10:24 PM Ooooo. You're not being truthful with us. You have several font-family lines ending with 'dotum' that have no generic font family specified. Pyro, isn't 'fantasy' a generic? Ben Rogers 02-15-2004, 10:24 PM ok i fixed it. that style rule is back when i used text in the h1. looong time ago. still get the warning. and i dint no that. i put sans-serif in all the fon-family rules without a generic buntine 02-15-2004, 10:29 PM Hm. I offered sans-serif as a final alternative for every font-family though.... Huh? Thats not what your file shows.. Ben Rogers 02-15-2004, 10:29 PM OK, warning gone. I put in the sans-serif. I'm somewhat of an idiot at times lol pyro 02-15-2004, 10:31 PM Doh. Yep, it is... Must have been a differnet declaration then... Ben Rogers 02-15-2004, 10:40 PM Yep. Thanks everyone... heh now all that I have left is valid XHTML Strict. Damn t35, putting <script> after the </html> tag... fredmv 02-16-2004, 03:51 AM Originally posted by ray326 isn't 'fantasy' a generic? Should be; I believe it's treated as sans-serif. Ben Rogers 02-16-2004, 12:20 PM Originally posted by fredmv Should be; I believe it's treated as sans-serif. Nope. On my PC it's cursive on IE, papyrus on Mozilla. But I set it as papyrus, so yeah. sans-serif is tahoma or verdana. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |