|
|
|
|
Thread title: <!--[if IE 6]> |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
02-27-2007, 10:27 PM
|
#1
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
<!--[if IE 6]>
Hi there,
Just coded http://www.wonderboy.mythicx.com/ezupload/ for IE 6 there as it was a little messed up, but for some reason it's not reading this code:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
<![endif]-->
So it's not loading the ie style sheet when you're viewing it in Internet Explorer, so you're still seeing it messed up.
Does anyone have any ideas why it might not be reading it ?
Also, the flash advertisement isn't working properly in IE for some reason. Some of the code i used for inserting the flash is invalid as well, does anyone know anyother ways of inserting the flash add ?
Thanks.
|
|
02-28-2007, 12:04 AM
|
#2
|
Status: I love this place
Join date: Jun 2005
Location: UK
Expertise:
Software:
Posts: 562
|
No space.
Code:
<!--[if IE6]>
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
<![endif]-->
|
|
02-28-2007, 12:20 AM
|
#3
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
Ah, thank you Silly mistake
|
|
02-28-2007, 12:34 AM
|
#4
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
That made no difference.
IF i type:
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
<![endif]-->
then it doesn't load the stylesheet properly for some reason, if i just put:
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
It works in IE, strange.
|
|
02-28-2007, 12:53 AM
|
#5
|
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
Posts: 4,625
|
Originally Posted by Wonderboy
That made no difference.
IF i type:
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
<![endif]-->
then it doesn't load the stylesheet properly for some reason, if i just put:
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
It works in IE, strange.
|
But it will also work in other browsers too then...
|
|
02-28-2007, 01:02 AM
|
#6
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
I know, basically for some reason it's ignoring the IE tag
|
|
02-28-2007, 04:14 AM
|
#7
|
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
Posts: 5,572
|
Don't have a space between IE and 6, have it like this <!--[if IE6]>
|
|
02-28-2007, 10:21 AM
|
#8
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; ch****t=iso-8859-1" />
<title>EZ Upload</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE6]>
<link rel="stylesheet" type="text/css" href="ie6-style.css" />
<![endif]-->
</head>
This is so frustrating! It's still not working, i don't understand, everything is correct.
|
|
02-28-2007, 11:57 AM
|
#9
|
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 1,212
|
For some reason IE6 is not reading this code either:
Code:
<form enctype="multipart/form-data" action="loaded2.php" method="post">
<input type="file" name="userfile" />
<input type="submit" value="upload" />
</form>
Strange...
|
|
02-28-2007, 12:50 PM
|
#10
|
Status: Member
Join date: Feb 2006
Location:
Expertise:
Software:
Posts: 191
|
Code:
<input type=file" id="userfile" name="userfile" />
Always best to name it by an identifier as well, especially in XHTML. Some browsers accept name, some accept id, some accept both, but XHTML makes it a little more strict in some browsers
The code you are using for Internet Explorer's conditional statements is fine. To any other browser it looks like a comment, but to Internet Explorer it checks the version. I'm not sure why it's not working, but check the CSS file exists possibly? I can test it when I get home, but if you just Google "HTML conditional statements", take an MSDN page and it should show you how to do > and < versions. So you wat IE < 7, but there's a proper way of doing it.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|