0
Welcome Guest! Login
0 items Join Now

Code to call a different css template file if it's a "IE browser"?

  • Code to call a different css template file if it's a "IE browser"?

    Posted 17 years 7 months ago
    • Hi everyone,

      I just tried to include following code to use a different css-file if the visitor used a IE-browser.. but it's not working. Can anyone see what I'm doing wrong?
      <!--[if IE 6]>
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie_css.css" rel="stylesheet" type="text/css" />
      <![endif]-->
      <!--[if IE 5]>
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie.css" rel="stylesheet" type="text/css" />
      <![endif]-->

      I included it in the <header> section, in the template/index.php file.

      Cheers
      Mikael
    • HTML, CSS -> OK
      Joomla -> learning

Time to create page: 0.046 seconds