/    Sign up×
Community /Pin to ProfileBookmark

Don’t understand warning

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 [I]zero???[/I]

to post a comment
CSS

21 Comments(s)

Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — 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.
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — Hm. I offered sans-serif as a final alternative for every font-family though....
Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — Did u write it as 'sans-serif' ?? The dash character may have something to do with your problems..
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — aren't you supposed to?
Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — I dont know.. CSS might interpret the - character as being part of an identifier..

Try removing sans-serif and re-validate the page..
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — it's already valid, and sans-serif is a default font.
Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — 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.
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — 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.
Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — Its ok... I dont know why it does it then. I suppose its just a bug in the validator.
Copy linkTweet thisAlerts:
@pyroFeb 16.2004 — I bet you that we could help you better if we could see the CSS file you are talking about...
Copy linkTweet thisAlerts:
@ray326Feb 16.2004 — [i]Originally posted by omega [/i]

[B]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 [I]zero???[/I] [/B]
[/QUOTE]
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?
Copy linkTweet thisAlerts:
@pyroFeb 16.2004 — I don't see a default font-family:

[FONT=courier new]font-family: arial black,"arial black", fantasy;[/FONT]

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.
Copy linkTweet thisAlerts:
@ray326Feb 16.2004 — 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?
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — 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
Copy linkTweet thisAlerts:
@buntineFeb 16.2004 — 
Hm. I offered sans-serif as a final alternative for every font-family though....
[/quote]


Huh? Thats not what your file shows..
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — OK, warning gone. I put in the sans-serif. I'm somewhat of an idiot at times lol
Copy linkTweet thisAlerts:
@pyroFeb 16.2004 — Doh. Yep, it is... Must have been a differnet declaration then...
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — Yep. Thanks everyone... heh now all that I have left is valid XHTML Strict. Damn t35, putting <script> after the </html> tag...
Copy linkTweet thisAlerts:
@fredmvFeb 16.2004 — [i]Originally posted by ray326 [/i]

[B]isn't 'fantasy' a generic? [/B][/QUOTE]
Should be; I believe it's treated as sans-serif.
Copy linkTweet thisAlerts:
@Ben_RogersauthorFeb 16.2004 — [i]Originally posted by fredmv [/i]

[B]Should be; I believe it's treated as sans-serif. [/B][/QUOTE]


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.
×

Success!

Help @Ben_Rogers spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...