SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Git-R-Done
    Join Date
    Nov 2001
    Posts
    1,194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to keep validator warning from coming up for voice-family?

    Does anyone know how to keep the warning from coming up for voice-family (the IE box model hack)? I've seen it done on several sites (simplebits.com is one), but I cannot figure out how he did it. I'm using the same method of calling the external file as he is but I keep getting warnings:

    <link rel="stylesheet" media="screen" type="text/css" href="style.css" />

    # Line : 0 Property voice-family doesn't exist for media
    # Line : 0 Property voice-family doesn't exist for media
    # Line : 0 Property voice-family doesn't exist for media
    John Saunders

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    A warning is not the same as an error. Even with a warning your CSS is still valid; with an error it's not.

  3. #3
    Git-R-Done
    Join Date
    Nov 2001
    Posts
    1,194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know, I just have a big stylesheet and out of all my code, this is the only warning that comes up so I was hoping to get rid of it.
    John Saunders

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Its because you specify media="screen" and the voice family hack is aural so it won't validate. If you leave out the media =screen I believe it will validate but of course may conflict if you have other media styles set up.

    Thats why I always use * html instead of the voice family hack and it validates fine (see FAQ on box model hack). Note that ie5 will skip the whole style after a voice family hack and if you arent using the be kind to opera html>body etc routine then ie5 will jump the complete next styles block (whatever it may be).

    Paul


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
  •