Hi:
I have two external css files being loaded based on the following code in the head of my php file:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="standard.css"/>
<![endif]>

<![if IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css"/>
<![endif]>

<![if IE 8]>
<link rel="stylesheet" type="text/css" href="standard.css"/>
<![endif]>

I am testing in FF3.5 and IE8.

IE8 picks up standard.css in normal operation and ie7.css in compatability view.

The problem is FF picks up standards.css, ie7.css, then standard.css again.

Does anyone know why FF is doing this?

btw: the URL is http://www.products-and-services.ca/vosfinances/index-f.php

Your code was wrong. Should be

<!--[if gte IE 5.5]>
<link rel="stylesheet" type="text/css" href="standard.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="standard.css" />
<![endif]-->

It should be work. Good luck..

I muddled over this for hours and cannot tell you how much your help is appreciated.

Thanks Zero13 :)

Thanks Zero13, I also solving this bug for many days, IE really sux! I wish this browser will be gone for the next few years.

Your code was wrong. Should be

<!--[if gte IE 5.5]>
<link rel="stylesheet" type="text/css" href="standard.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="standard.css" />
<![endif]-->

It should be work. Good luck..

Yes. we all afraid IE bugs. Cheers... friend.

I had same issue with IE6. I tried to hire some web designers too but no one could realize the problem. Lastly I thought of using a new custom template. Thanks zero13 for your help.

Thanks to Zero 13 for solving this for me months past.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.