SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: Redefinition of font-weight
-
May 23, 2003, 05:14 #1
- Join Date
- Apr 2003
- Location
- lisboa
- Posts
- 423
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Redefinition of font-weight
i've a style sheet that validates ok, but anyway i get this message:
Warnings
URI : http://www.ebi-vasco-gama.rcts.pt/php.css
Line : 87 Level : 2 Redefinition of font-weight : p.adata
What does that mean?
-
May 23, 2003, 06:13 #2
- Join Date
- Feb 2003
- Location
- UK
- Posts
- 215
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You've got
Code:p.adata { font: 14px verdana, sans-serif; font-weight: 600; etc... }
Recommended Reading:
Why we won't help you - An article by Mark Pilgrim.
http://www.zopester.com - Coming Soon!
-
May 23, 2003, 06:53 #3
- Join Date
- Apr 2003
- Location
- lisboa
- Posts
- 423
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks!
that's it:
font: 600 14px verdana, sans-serif;
and validates ok
-
May 23, 2003, 06:58 #4
- Join Date
- Feb 2003
- Location
- UK
- Posts
- 215
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Just make sure you provide fallbacks for users who may not have Verdana on their system. Try:
Code:p.adata { font:600 14px Verdana,Geneva,Arial,Helvetica,sans-serif; }
Recommended Reading:
Why we won't help you - An article by Mark Pilgrim.
http://www.zopester.com - Coming Soon!
-
May 23, 2003, 08:24 #5
- Join Date
- Apr 2003
- Location
- lisboa
- Posts
- 423
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks, but generic font family isnt enough?
-
May 23, 2003, 08:38 #6
It is enough, but you might consider it preferable to fall back on certain 'other' sans-serif fonts rather than leave it to chance so soon.
It's entirely down to how fussed you are about the possible fonts used on your site.
If you really aren't bothered what is used in the absence of Verdana, then Verdana, sans-serif is fine.Last edited by Bill Posters; May 23, 2003 at 10:03.
New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
May 23, 2003, 08:56 #7
- Join Date
- Feb 2003
- Location
- UK
- Posts
- 215
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I really should read the contents of a post before commenting on it. I entirely failed to see "sans-serif", even though I myself used it in my answer to your question. My apologies rfl. However, as Bill says, you may want to provide alternatives.
I think Geneva is more prevalent on Macs than Verdana is (though this is supposition on my part) so that would be wise to specify.
Depends how bothered you are though!Recommended Reading:
Why we won't help you - An article by Mark Pilgrim.
http://www.zopester.com - Coming Soon!
-
May 23, 2003, 09:03 #8
- Join Date
- Apr 2003
- Location
- lisboa
- Posts
- 423
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
ok, thanks for your good comments
-
May 23, 2003, 10:07 #9
Fwiw, Verdana is a default installation font in OS X besides being installed by pretty much any/every piece of MS software for Macintosh.
It's also been available on the Mac OS installation disks since OS 8.
<edit>
Just found this:
http://www.codestyle.org/css/font-family/FAQ.shtml
Some useful info about standard and comparative fonts and various OSs.
</edit>New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
Bookmarks