Topic: if lte ie 6 doesn't work

I see this written everywhere as the way to detect for ie versions to allow one to make css fixes, but it doesn't work for me.

I have inserted alerts into the javascript but it never gets run.

Is there something that I am missing?

This is what I have.

<!-- [if lte IE 6]>
  <script src="/javascripts/pngfix.js?1191895809" type="text/javascript"></script>
  <link href="/stylesheets/ie6.css?1191885265" media="screen" rel="Stylesheet" type="text/css" />
<![endif]-->

Thanks for the help.

Re: if lte ie 6 doesn't work

remove the space before the bracket. "<--[if..."

Re: if lte ie 6 doesn't work

also you should probably do this if its for IE only:

<!--[if lte IE 6]>
  <script defer src="/javascripts/pngfix.js?1191895809" type="text/javascript"></script>
  <link href="/stylesheets/ie6.css?1191885265" media="screen" rel="Stylesheet" type="text/css" />
<![endif]-->

Re: if lte ie 6 doesn't work

it was the space that did it.

Thanks for the help.