Scripsit Jonathan N. Little:
"works weird", now is that a technical term?
Well, not telling what the problem is (in the OP's opinion) is compatible
with not posting a URL. It's usually pointless to answer such requests,
since the OP is making it difficult to help him, and the symptoms suggest
that he wouldn't take the best part of advice anyway.
But I couldn't help noticing this comment of yours, which I cannot really
agree with:
>body { background-color: #996; font: 20px/1.2 Trebuchet MS; color:
#003; }
Next Trebuchet MS is an MS only font, you should provide alternates
otherwise the default a serif font will be substituted.
Why would that be a problem?
Contrary to popular superstition, it is not necessary to specify any
alternate fonts. If you say font-family: Trebuchet MS, you only say that
Trebuchet MS is preferred. When it is not available, the browser uses its
default font, which is what happens if you say nothing about font-family.
You _can_ add a generic font family name, sans-serif in this case, but only
because you think that it might do some good, not because someone told you
to do so. And you shouldn't add list of specific font names just because you
can copy it from somewhere. Oddly enough, people often suggest fonts that
they never saw in action, or never saw as applied to the page they suggest
it for!
If you really think that your page looks better in a sans-serif font, you
can use a declaration like
font-family: Trebuchet MS, sans-serif;
But adding "alternates" (specific font names) to it is mostly waste of time.
Besides, if we comment at all on style sheets like that, can we really
comment on such minor issues only? It could easily be construed as accepting
the part that is not commented. Yet the style sheet sets font size in
pixels, sets a slightly too small (for the font suggested) line height, and
uses color and background with insufficient contrast ("The difference in
colour between the two colours is not sufficient. The threshold is 500, and
the result of the foreground and background colours is 357.", says
http://juicystudio.com/services/colo...ast.php#result )
Also
Trebuchet MS font name has embedded space and should be quoted:
font: 20px/1.2 "Trebuchet MS", hevetica, "Vera Sans", sans-serif;
Contrary to popular belief, it need not be quoted in most situations. It
might be a good idea to quote it, for simplicity, but an unqualified
"should" is misleading, especially in a context where the style sheet has
much more serious problems.
And if you suggest Helvetica, spell it right.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/