0

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

Edited by dennishall: n/a

4
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by dennishall
1

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

0

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

Thanks Zero13 :)

0

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

0

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.

0

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

Edited by dennishall: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.