HELP!! ie6 not picking <!---- if code

Permalink
Hi, having issues with ie6 I know it's rubbish but client wants this site to be viewable in this also I have this declartion at the top of header.php but it's not picking it up have I missed something here's what I have.....


<link href="<?=$this->getThemePath()?>/css/style.css" rel="stylesheet" type="text/css" />
<?php Loader::element('header_required'); ?>
<!--[if IE 6]>
<script type="text/javascript" src="http://www.winewholesalelimited.com/themes/winewholesale/supersleight-min.js"></script>
<style>
.content_box_wrap { width:170px; margin:5px auto; padding-bottom: 5px; position:relative; height:210px }
.navigation { width:500px; position:absolute; bottom:-14px; right:-15px; }
.navigation ul li a { margin:0 0 0 6px; padding:0px 4px 0 4px; font:bold 14px/31px Georgia, "Times New Roman", Times, serif; color:#000; text-decoration:none; display:block; background:url(http://www.winewholesalelimited.com/themes/winewholesale/images/tabsbg.gif) center top repeat-x; height:31px; float:left}
</style>
<![endif]-->
</head>

clairec
 
nteaviation replied on at Permalink Reply
nteaviation
It looks like it should work. Do you see your HTML Comment Conditionals when you look at the page with your browser's View/Source?
clairec replied on at Permalink Reply
clairec
Yes all the comments are there in HTML I'm just scratching my head moved it everywhere within the head section just incase still no joy
senshidigital replied on at Permalink Reply
senshidigital
Do what we do... we tell clients we do not build sites for IE6 for any reason. It must die!! ;-D

But seriously, when we tell clients the benefits of not designing a site to work in IE6 then they are fine with it.

If I had my way I would kill IE all together as its an awful browser.
clairec replied on at Permalink Reply
clairec
Totally agree it's a pain in the @rse we don't normally bother either but there's always one client who demands it hence this one it just peaves me that it does all work in ie6 it simply is not picking up <!----if code blinking thing
hbartlett replied on at Permalink Reply
hbartlett
Um, what are the 'benefits' of not designing for IE6?

It all depends on your target market. I'm developing a site at the moment where there's no question it should work in IE6 - the stats from the old site indicate:

IE8 = 40%
IE7 = 20%
IE6 = 10%
Firefox (all versions) = 14%
Chrome = 7%
Safari = 3%
iPad/iPhone = 0.6%

There's no question IE6 is a bit of a pain, but it's not dead. Lots of corporate still use it. Then again, it depends on your target market. A site for designers is going to be all Firefox/Safari/Chrome, but it's ridiculous to not have stuff work for 10% of your market. I find it funny everyone saying to design for iPads and then ignoring IE6 - nice Utopian idea, but we're not there yet.
nteaviation replied on at Permalink Reply 1 Attachment
nteaviation
I have to agree with hbartlett. We do a lot of business overseas in poorer economies that have not moved to the newer technologies.

Back to the business at hand.
@clairec: Could you try a test HTML file like I have attached.

If we can't get it to work correctly with the test HTML, there is no way it will work in PHP/c5.
clairec replied on at Permalink Reply
clairec
They didn't seem to work. I got the png fix to work however this only works out if the <!---- if code it simply does not locate the anything within <!---- if code, I'm stumped!
nteaviation replied on at Permalink Reply
nteaviation
Interesting. You could use PHP instead of Browser Comment Conditionals. Look at the php get_browser function:
http://php.net/manual/en/function.get-browser.php...
senshidigital replied on at Permalink Reply
senshidigital
Don't get me wrong, a lot of our sites do still work in IE6 but we refuse to build 'for it'.

IE6 is terrible for security reasons, does not allow background PNG without javascript and even thats buggy. A lot of the techniques used in sites these days look terrible or don't work properly in IE6. Even css throws up a lot of problems.

Google have stopped supporting it as well as a lot of other big companies. It needs to die and the only way is to build sites that make use of the later technologies in IE7 and above. This forces the user to upgrade the browser to give them a better online experience and ultimately, help us developers.

If we all still thought and catered for tech/software thats over 12 years old then we would all be using Commodore 64's to view the web and trying to build them on ZX81's!
hbartlett replied on at Permalink Reply
hbartlett
You're preaching to the choir about how miserable and outdated IE6 is. However, it's what we have to deal with. You can't expect to force upgrades on people. In corporate world, it's still ubiquitous and has to be supported.

All I'm saying is that the day is coming that we can start dropping it, but not yet. Like I posted in my example above, that one site has 10% of people still using it (stats from yesterday). You have to consider why these people are in fact using it; they either a) are in a corporate environment where it's still in use and have no control over upgrading it, or b) have no idea that they can, or realize there's any reason or advantage to upgrading, or are simply intimidated by changing and won't ever download or install anything on their computer. All they know is your website looks like crap, so therefore you suck as a designer.

I'd say we have at least another year for IE6.

There's a good post and discussion about it here:http://www.friskdesign.com/2009/04/20/why-i-support-ie6/...
clairec replied on at Permalink Reply
clairec
Thanks everyone for the age old debate I have resolved it now anyway it picks it up all the time by adding a js like this
<!--[if IE]>
<script>
document.writeln( "<link rel='stylesheet' type='text/css' href='ie6.css' />");
</script>
<![endif]-->

No idea why it was not picking it up the normal way