Tom wrote: > Does anyone know if there is a way to provide CSS files specifically > for FF3, or is that ridiculous hack the only way to go?
While I can't imagine a reason for which I would need to target/hack FF3, I've recently moved away from CSS hacks during testing. That doesn't mean my CSS doesn't tweaking here and there for various browsers, it means I rely on other technologies for the production site (I do still use CSS hacks during testing and development). That being said, I've found two libraries to be helpful in this process: Conditional CSS <http://www.conditional-css.com/> is an excellent server-side solution which implements various tokens for identifying browsers and operating systems. It requires some knowledge of your server. It's syntax looks like this: ~~~ [if Gecko 1.9] body {margin:0;padding:0;} ~~~ A more lightweight example is Rafael Lima's CSS Browser Selector JavaScript <http://rafael.adm.br/css_browser_selector/> which classes the HTML element with various tokens for use in targetting browsers and operating systems. It's syntax looks like this: ~~~ .ff3 body {margin:0;padding:0;} ~~~ I'm not advocating the use of these. I agree with the argument that hacking a browser to kingdom come removes the incentive for browser developers to improve the browser. That being said, we do live in a world where sometimes a man's gotta hack. These make hacking a little easier for me and my team. Anyway, hope they help. -- <!-- ! Bill Brown <[email protected]> ! Web Developologist, WebDevelopedia.com --> ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
