SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Nov 8, 2004, 08:40 #1
- 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 mediaJohn Saunders
-
Nov 8, 2004, 08:43 #2
A warning is not the same as an error. Even with a warning your CSS is still valid; with an error it's not.
-
Nov 8, 2004, 08:45 #3
- 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
-
Nov 8, 2004, 17:07 #4
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 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