IE Conditional Comments
Years ago before I discovered Internet Explorer’s Conditional Comments, I struggled with CSS hacks, IE filters, and unreliable JavaScript sniffers.
With this technique markup inside the comments will be only visible to the IE browser in general or specific versions that you specify.
To target Internet Explorer in general, singling it out from every other browser, you would use:
<!--[If IE]> Some content here. <![endif]-->
To target a specific version of IE, you would use:
<!--[If IE 7]> Some content here. <![endif]-->
To target versions of the browser that are 7 and below:
<!--[If lte IE 7]> Some content here. <![endif]-->
To target versions of the browser that are 6 and above:
<!--[If gte IE 6]> Some content here. <![endif]-->











