Joomla, Say Goodbye to Conditional Comments
Details
A simple and effective way to handle to the various quirks between the different versions of Internet Explorer is the use of conditional comments to load specific stylesheets, declarations, or even classes. For example, HTML5 Boilerplate addresses this by implementing Paul Irish's Conditional stylesheets vs CSS hacks? Answer: Neither!:
However, conditional comments add extra code to your document and are limited to only Internet Explorer.
Joomla to the rescue!
Since Joomla! 1.5, JBrowser has existed to help us identity the client's browser by examining the HTTP_USER_AGENT. By leveraging JBrowser, we can not only eliminate the use conditional statements in templates, but also expand browser specific rules beyond IE and do this server-side.