-
Book Overview & Buying
-
Table Of Contents
Joomla! 1.5 Templates Cookbook
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.
Open your template's index.php file, which is located in the templates\rhuk_milkyway\ directory of your Joomla! installation.
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 the templates\rhuk_milkyway...
Change the font size
Change margin width
Change background colour