General Community > Off-Topic

Css IF ie6 not working

(1/1)

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:


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

--- End code ---

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

cheers

Klaus

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.

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

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version