-
☆ A M B ☆
- 1,231 Posts
Hey, I’m trying to use a PNGfix for my site and I have tried 2 or 3 and they do work but not with conditional IE comments.
I have tried <!--[if IE 7]> and all the other comments to point to versions equal to 6 or less than 7 but they will not work. I have to make it cover all IE <!--[if IE]> for it to work. What could cause a IE specific conditional comment not to work but a general IE comment to work?
Too expand... I just took out all snippets and other JS. All I was left with is a basic CSS based layout and the conditional still won’t work. Is it a modx thing?
Quote from: rossco at Sep 13, 2008, 10:48 AM
Hey, I’m trying to use a PNGfix for my site and I have tried 2 or 3 and they do work but not with conditional IE comments.
I have tried <!--[if IE 7]> and all the other comments to point to versions equal to 6 or less than 7 but they will not work. I have to make it cover all IE <!--[if IE]> for it to work. What could cause a IE specific conditional comment not to work but a general IE comment to work?
Too expand... I just took out all snippets and other JS. All I was left with is a basic CSS based layout and the conditional still won’t work. Is it a modx thing?
IE7 needs spaces separating the comment tags (i.e. "<!-- [if..." instead of <!--[if..."), so that could be your problem.
This should work:
<!-- [if lt IE 7]>
png fix here.
<![endif] -->
-
☆ A M B ☆
- 1,231 Posts
Hey thanks for the reply but that didn’t work either...
-
☆ A M B ☆
- 1,231 Posts
I have tried all possible ways that I have read for IE conditional and none are working apart from using the generic IE conditional. I want to separate conditional stuff for IE 6 and 7 but it’s not working.
Quote from: rossco at Sep 13, 2008, 02:42 PM
I have tried all possible ways that I have read for IE conditional and none are working apart from using the generic IE conditional. I want to separate conditional stuff for IE 6 and 7 but it’s not working.
Do you, by chance, have both IE6 and 7 installed on the same machine? If that’s the case, they can misidentify themselves and that could be causing your problem.
-
☆ A M B ☆
- 1,231 Posts
I am using a tool called IE tester and I have M$ virtual machine running... All on the same machine. VM is using a virtual partition so this has nothing to do with IE7 that’s with Vista and IE tester runs as a stand alone app. It’s getting late here so I will check again tomorrow over things. It is strange!