• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Css IF ie6 not working

Started by daydreamer, May 16, 2008, 09:13:18 AM  ( Read 22,955 times )

daydreamer

Hi I am using

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
<![endif]-->

This does not seem to work when viewed in ie6 am I doing somthing wrong

    BerndJM

    Hi,

    you use this in the index.php of your template?
    So I think the path to the css-file is not correct.

    Regards Bernd

      kweitzel

      to be shure, that the CSS path is correct use:


      <!--[if IE 6]>
      <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/ie6.css" />
      <![endif]-->


      Your CSS file needs to be with the indexfile of your template.

      cheers

      Klaus

        deschek

        I`m using <base href="<?php echo WB_URL; ?>" /> to not have problems with access to templates etc. Its always some useless code less in website.

          memerson

          Quote from: daydreamer on May 16, 2008, 09:13:18 AM
          Hi I am using

          <!--[if IE 6]>
          <link rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
          <![endif]-->

          This does not seem to work when viewed in ie6 am I doing somthing wrong

          You have probably already sorted the problem since it was posted so long ago, but the reason it's not working is that you need to specify a CSS file for both IE 6 and IE 7 if you do it this way.

          So, if you are only wanting to use a separate file for IE 6 only, you'd have to write:

          <!--[if IE 6]>
          <link media="all" rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
          <![end if]-->
          <!--[if IE 7]>
          <link media="all" rel="stylesheet" type="text/css" href="/templates/home/youroriginalfile.css" />
          <![end if]-->

          Like that.

            \n\n