unrecognized media screen, print

Hi there,

I'm trying to validate my pages which include @import to call the stylesheets. The page begins as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Thanks for signing up : NZHistory</title>
<!-- exclude style sheet for IE WIN 4.0, NN4.0 and MAC IE 5.0 -->
<style type="text/css" media="screen, print">
        @import url(css/general.css);
		@import url(css/navigation.css);
		@import url(css/1-col.css);
		@import url(css/utilities-general.css);
</style>
<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
</head>

When I try to validate the CSS I get the following error:

Errors
URI : http://www.webweaver.co.nz/client_testing/shift/nzhistory/alerts-thanks.html

    * Line: -1

      unrecognized media screen, print 

I've also tried it with <style type="text/css" media="screen,print"> (no space between screen, and print) - I get the same error. 

Could you please tell me what I'm doing wrong? I'm sure this is the way to select more than one media type - isn't it? (oh, and I know the reference to the print stylesheet doesn't work - I haven't built it yet)

Hoping you can help me out...

Thanks!

:)Ali

Received on Friday, 14 October 2005 06:15:54 UTC