IE specific CSS hack! 

Joined:
02/21/2009
Posts:
172

February 03, 2014 14:38:30    Last update: February 03, 2014 14:38:30
IE 10 no longer support conditional comments like:
<!--[if IE 8]>
<p>Welcome to Internet Explorer 8.</p>
<![endif]-->


So other hacks are necessary when you want to target specific CSS to IE10 or IE11. The following hack was confirmed to work for IE10 & IE11:
<style type="text/css">
	label.ie {
		display: none;
	}

	/* This works for IE 9, 10 & 11 */
	@media screen and (min-width:0\0) { 
		label.ie {
			font-weight: bold;
			text-decoration: underline;
			display: inline;
		}
	}
</style>

Links:
Share |
| Comment  | Tags