SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css validation error - whitespace in font family not in quotes - but it is!

    got w3c css validation error as above

    here is css:
    font-family: "Trebuchet MS", Helvetica, sans-serif;

    in my editor "Trebuchet MS" is in red to indicate a problem - what is it??
    thanks

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,217
    Mentioned
    153 Post(s)
    Tagged
    0 Thread(s)
    Did you copy and paste the quoted font? If so, try deleting the quotes and re-entering them manually. Maybe the quotes that were pasted are not typical quotation marks (part of the ASCII standard).

  3. #3
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no I didn't, and yeah I deleted and re-typed - it's doing it for "lucida grande" also, which is a font from my wordpress theme . . .
    oh well guess I can't use the css validation badge!
    thanks

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,297
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Is this online? We could take a look if you like. Usually I paste text/code into a plain text editor first to make sure it's clean. But in this case, it's worth just closing the code editor and opening it again. sometimes that helps it. There doesn't seem to be an error there.

    Off Topic:

    Validation badges kind of suck anyway. I wouldn't put them on a site. It's a bit like receiving a compliment and then writing it on a postIt note and wearing it on your forehead.


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
  •