<! - [If IE]> Doesn't work
2 answers
This is just to clarify (since nobody really has).
This is a space between <!-- and [If IE] , as well as a space after [endif] , which breaks your code. It does not exist in any of the answers that were before mine, so they work, and yours do not.
Bad:
<!-- [If IE]> <![endif] --> Good:
<!--[If IE]> <![endif]--> <!DOCTYPE html> is good practice, but not required for this.
+9