SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Evangelist
    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?

  2. #2
    Incoherent drivel since 1975 Zopester's Avatar
    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...
    }
    Just addd the font-weight value to the font definition and you're good to go
    Recommended Reading:
    Why we won't help you - An article by Mark Pilgrim.

    http://www.zopester.com - Coming Soon!

  3. #3
    SitePoint Evangelist
    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

  4. #4
    Incoherent drivel since 1975 Zopester's Avatar
    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!

  5. #5
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, but generic font family isnt enough?

  6. #6
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 09:03.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  7. #7
    Incoherent drivel since 1975 Zopester's Avatar
    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!

  8. #8
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, thanks for your good comments

  9. #9
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •