I have gone to some lengths to make my site compliant but have run into a problem with the css of my mobile.css stylesheet. The mark up in my header is: <!--[if !IE]>--> <link media="only screen and (max-device-width: 480px) and (min-device-width: 320px)" href="./css/mobile.css" type="text/css" rel="stylesheet" /> <!--<![endif]--> The style sheet begins: @charset "UTF-8"; /* CSS Document */ /* Remove default margins and padding */ div { margin:0; padding:0;} body {margin:0;padding:0;height:100%;} ....and so on. This is the response I get from the WC3 validator: unrecognized media only screen and (max-device-width: 480px) and (min-device-width: 320px) How do I get round this? All advice gratefully received.
Your conditional comment is written wrong. Remove the extra --> on line one and the extra <!-- on the last line.
Brilliant. Funny how when you're doing this you can overlook a code error that simple even after staring at it for too long. It now validates and I owe you a beer! Cheers, Dominic