Using conditional stylesheets in Joomla!
Internet Explorer supports conditional comments that can be used to target stylesheets specifically to versions of Internet Explorer; these are known as conditional stylesheets. Conditional stylesheets can be used to alter the appearance of elements of your Joomla! website in the Internet Explorer browser, and are particularly useful in providing quick fixes to your Joomla! template that occur only in Internet Explorer.
Getting ready
Open your template's index.php
file, which is located in the templates\rhuk_milkyway\
directory of your Joomla! installation.
How to do it...
1. Within the
<head>
element of the template, add the following code:<!--[if IE]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" /> <![endif]-->
2. You can now specify CSS solely for Internet Explorer in the
ieonly.css
file in thetemplates\rhuk_milkyway...