My Conditional IE Statement Doesn’t Seem to Work
Posted: 29 February 2008 12:00 PM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2008-02-29

I can’t seem to get my site to redirect IE 6 and 5.5 to my alternate .CSS file. They just never load it. I am a little new to CSS. Can’t I somehow enter my alternate element styles for IE 6 and 5.5 within my main style sheet with “*” ?

Here is what I have in the head section of my index.asp :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>

<
html lang="en">
<
head>


<
link rel="stylesheet" href="tex.css" type="text/css">

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

Is this correct? I’ve tried so many combinations of that. I tested the site on IE6 and it never loads ietex.css. The site is http://www.readingnowerie.com and the main style sheet is “tex.css” at the root. What am I doing wrong? Thanks!

Profile
 
 
Posted: 29 February 2008 02:52 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2007-04-02

Have you viewed you source? It appears that you have nested 4 <html> tags in your document.

Profile
 
 
Posted: 01 March 2008 07:57 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2008-02-29

I missed that! Thanks. I took those out. I had them in there from my linked files. But the IE 6 problem still remains. Is there another way to check for IE 6 and 5?

Thanks again for taking the time to respond.

Profile
 
 
Posted: 03 August 2010 02:43 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  2
Joined  2010-08-03

A good piece of editor software would make writing your code world easier.

Good luck, Drew

Profile
 
 
Posted: 17 August 2010 02:30 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  2
Joined  2010-08-17

This forum is must for people like me.s

Regards

Tayloer15

Profile
 
 
Posted: 17 September 2010 03:16 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  2
Joined  2010-09-17

Manufacturer of ball bearings, linear bearings, offer product catalogue with online order form, located in China.
Manufacturer of ball bearings, linear bearings, offer product catalogue with online order form, located in China.
Manufacturer of ball valves, Gate Valve, offer product catalogue with online order form, located in China.
Manufacturer of shearing machine, Plate Rolling Machines, offer product catalogue with online order form, located in China.

Profile
 
 
Posted: 21 November 2010 01:27 PM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  44
Joined  2010-10-13

It appears you can use them within the head tag, though, and include an external CSS file.

Profile