SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validate CSS 2.0

    Hey everyone. Well, I'm working on my Weblog and it's coming out really nicely. And I'm really excited because it validates xhtml 1.1! Also I checked the accessibility with Firefox and my page passed as well. Well, my question, well...questions, are as follows:

    1. My css valides, but just as "css." How do I make it validate as css 2.0?

    2. It says I need to declare a generic font-family on line: 0. How would I go about doing that?

  2. #2
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. what do you mean by "css." ... it should automaticaly validate to 2.0. if you go to the validator you can click on "Advance Interface" and select "css version 2" in the profile... but you'll see that it's already selected.

    2. well... we'll need your css or you'll have to tell us what's in the vicinity or line 0

  3. #3
    Ding Fries are Done! inter4design's Avatar
    Join Date
    Mar 2003
    Location
    usa
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    body {
    font-family: arial;
    }

    that should declare a generic font family
    DoesItMatter
    - anyone seen my underwear?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by inter4design
    body {
    font-family: arial;
    }

    that should declare a generic font family
    "Arial" is a specific font, not a generic font family. "sans-serif", "monospace", or "serif" are examples of generic font families.

  5. #5
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    "Arial" is a specific font, not a generic font family. "sans-serif", "monospace", or "serif" are examples of generic font families.
    Oh, I think that's the ticket! Thanks Vinnie! I'll give it a go.

  6. #6
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, my page validates xhtml 1.0 strict as well as xhtml 1.1, so which should I use? I mean...is one of the two more impressive than the other? Does it really matter?


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
  •