From: "Christian Heilmann" <[EMAIL PROTECTED]> > > It works fine in Firefox and IE but doesn't validate (XHTML 1.0 Strict) - > > validation fails immediately after the "class=" declaration. I've searched > > without luck for information on this. > > In addition to the information pointed out in the other posts in this > thread there's also the semantic idea: > > - a class is to be used to style n elements of the page > - an ID is to be used to style a unique element of the page > > How many bodies are you planning to use? >
Thanks all, had picked up the id issue - just having a bad code day. Felt an idiot using class. All I'm playing around with here is a method of removing the need for CSS hacks by implementing different classes according to sniffed browser - in this case by calling a PHP sniffer at the top of the page. I'm particularly keen to see it's use in various accessibility scenarios. Thanks for the link Eric - I looked at W3C of course but didn't see. I'm still having a problem with the W3C validator complaining I have no <html> start tag but that's unlikely to be a CSS issue (probably to do with PHP include at page top). Mike A. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/