Css IF ie6 not working

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.

diodak

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.
Buchsbaum

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

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
In theory, there is no difference between theory and practice. But, in practice, there is.

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