Hi Langshaw,
I've used underscores in some farcry css rules to "feed" those rules only to Internet Explorer. Its called the "underscore hack". There's lots of info scattered around the web but here's a short explanation: http://wellstyled.com/css-underscore-hack.html

Now, for those playing along at home, yep, that causes the css to be invalid. Its a personal decision that has to be made as to whether your scenario/project is worth that sacrifice. At the time I made the call to use the underscore hack because it fixed an immediate problem and didn't have immediate side effects.

note i said 'at the time' :)

CSS practices move so quickly that things have changed since then and we should all be using conditional comments to feed IE a specific rule if its required. The impending release of IE7 makes this very important, although its unclear (before its released and we see it) whether the underscore hack will cause major problems.
more info here: http://www.brucelawson.co.uk/index.php/2005/future-proof-your-css-with-conditional-comments/

so, what I'll need to do is rework the farcry css to pull out those rules with underscores, and put them in separate css files and use conditional comments to call them in for IE. that is, its not just a matter of removing the underscores from the farcry css as they are there to get some of the more intricate admin page designs to render nicely in IE.

But thanks for the heads up, its on the list of things to do :)

cheers,
pete

~~~~~~~~~~~~~~~~~~~~~~~
Peter Ottery ~ Creative Director
Daemon Pty Ltd





View this message in context: Re: Invalid CSS "main.css"
Sent from the FarCry - Dev forum at Nabble.com.

Reply via email to